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

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: HashMap<Cow<'a, str>, Cow<'a, str>>,
    pub post_blank: usize,
}

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: HashMap<Cow<'a, str>, Cow<'a, str>>

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

Methods

impl<'_> Title<'_>[src]

pub fn closed(&self) -> Option<&Timestamp>[src]

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

pub fn scheduled(&self) -> Option<&Timestamp>[src]

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

pub fn deadline(&self) -> Option<&Timestamp>[src]

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

pub fn is_archived(&self) -> bool[src]

Returns true if this headline is archived

pub fn is_commented(&self) -> bool[src]

Returns true if this headline is commented

pub fn into_owned(self) -> Title<'static>[src]

Trait Implementations

impl<'a> Debug for Title<'a>[src]

impl<'_> Default for Title<'_>[src]

impl<'a> From<Title<'a>> for Element<'a>[src]

impl<'a> Serialize for Title<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Title<'a>

impl<'a> Send for Title<'a>

impl<'a> Sync for Title<'a>

impl<'a> Unpin for Title<'a>

impl<'a> UnwindSafe for Title<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.