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: String

The normalized callout type.

metadata: Option<String>

The raw metadata after the | separator, if any.

fold: CalloutFold

The initial fold state.

Implementations

impl NodeCallout

fn new(callout_type: impl Into<String>, metadata: Option<String>, fold: CalloutFold) -> Self

Create a new NodeCallout with the given type, metadata, and initial fold state.

fn default_title(&self) -> String

Returns 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

impl StructuralPartialEq for NodeCallout

Auto Trait Implementations

impl Freeze for NodeCallout

impl RefUnwindSafe for NodeCallout

impl Send for NodeCallout

impl Sync for NodeCallout

impl Unpin for NodeCallout

impl UnsafeUnpin for NodeCallout

impl UnwindSafe for NodeCallout

Blanket Implementations

impl<F, T, S> SimdInto<T, S> for NodeCallout where T: SimdFrom<F, S>, S: Simd,

impl<T> Any for NodeCallout where T: 'static + ?Sized,

impl<T> Borrow<T> for NodeCallout where T: ?Sized,

impl<T> BorrowMut<T> for NodeCallout where T: ?Sized,

impl<T> CloneToUninit for NodeCallout where T: Clone,

impl<T> From<T> for NodeCallout

impl<T> ToOwned for NodeCallout where T: Clone,

impl<T, S> SimdFrom<T, S> for NodeCallout where S: Simd,

impl<T, U> Into<U> for NodeCallout where U: From<T>,

impl<T, U> TryFrom<U> for NodeCallout where U: Into<T>,

impl<T, U> TryInto<U> for NodeCallout where U: TryFrom<T>,