Struct orgize::elements::Title[][src]

pub struct Title<'a> {
    pub level: usize,
    pub priority: Option<char>,
    pub tags: Vec<Cow<'a, str>>,
    pub keyword: Option<Cow<'a, str>>,
    pub raw: Cow<'a, str>,
    pub planning: Option<Box<Planning<'a>>>,
    pub properties: PropertiesMap<'a>,
    pub post_blank: usize,
}
Expand description

Title Element

Fields

level: usize

Headline level, number of stars

priority: Option<char>

Headline priority cookie

tags: Vec<Cow<'a, str>>

Headline title tags

keyword: Option<Cow<'a, str>>

Headline todo keyword

raw: Cow<'a, str>

Raw headline’s text, without the stars and the tags

planning: Option<Box<Planning<'a>>>

Planning element associated to this headline

properties: PropertiesMap<'a>

Property drawer associated to this headline

post_blank: usize

Numbers of blank lines between last title’s line and next non-blank line or buffer’s end

Implementations

Returns this headline’s closed timestamp, or None if not set.

Returns this headline’s scheduled timestamp, or None if not set.

Returns this headline’s deadline timestamp, or None if not set.

Returns true if this headline is archived

Returns true if this headline is commented

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.