Struct NodeCallout
#[non_exhaustive]
pub struct NodeCallout { pub callout_type: String, pub metadata: Option<String>, pub fold: CalloutFold }
The metadata of a callout node.
Fields
callout_type: StringThe normalized callout type.
metadata: Option<String>The raw metadata after the
|separator, if any.fold: CalloutFoldThe initial fold state.
Implementations
impl NodeCallout
fn new(callout_type: impl Into<String>, metadata: Option<String>, fold: CalloutFold) -> SelfCreate a new
NodeCalloutwith the given type, metadata, and initial fold state.fn default_title(&self) -> StringReturns the default title for a callout type.
Hyphens are replaced with spaces, the result is lowercased, and the first UTF-16 code unit is uppercased.
Trait Implementations
impl Clone for NodeCallout
fn clone(&self) -> Self
impl Debug for NodeCallout
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for NodeCallout
impl PartialEq for NodeCallout
fn eq(&self, other: &Self) -> bool