Struct NodeAlert
#[non_exhaustive]
pub struct NodeAlert { pub alert_type: AlertType, pub title: Option<String>, pub multiline: bool, pub fence_length: usize, pub fence_offset: usize }
The metadata of an Alert node.
Fields
alert_type: AlertTypeType of alert
title: Option<String>Overridden title. If
None, then use the default title.multiline: boolOriginated from a multiline blockquote.
fence_length: usizeThe length of the fence (multiline only).
fence_offset: usizeThe indentation level of the fence marker (multiline only)
Implementations
impl NodeAlert
fn new(alert_type: AlertType, title: Option<String>) -> SelfCreate a new
NodeAlertwith the given type and title.
Trait Implementations
impl Clone for NodeAlert
fn clone(&self) -> Self
impl Debug for NodeAlert
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for NodeAlert
impl PartialEq for NodeAlert
fn eq(&self, other: &Self) -> bool