Bubble up planning variables to the headline.
This commit is contained in:
@@ -4,6 +4,7 @@ use super::Element;
|
||||
use super::GetStandardProperties;
|
||||
use super::Object;
|
||||
use super::StandardProperties;
|
||||
use super::Timestamp;
|
||||
|
||||
pub type PriorityCookie = u8;
|
||||
pub type HeadlineLevel = u16;
|
||||
@@ -29,6 +30,9 @@ pub struct Heading<'s> {
|
||||
pub is_comment: bool,
|
||||
pub is_archived: bool,
|
||||
pub is_footnote_section: bool,
|
||||
pub scheduled: Option<Timestamp<'s>>,
|
||||
pub deadline: Option<Timestamp<'s>>,
|
||||
pub closed: Option<Timestamp<'s>>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
||||
@@ -182,7 +182,7 @@ pub struct Superscript<'s> {
|
||||
pub source: &'s str,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Debug, PartialEq, Clone)]
|
||||
pub struct Timestamp<'s> {
|
||||
pub source: &'s str,
|
||||
pub timestamp_type: TimestampType,
|
||||
@@ -195,7 +195,7 @@ pub struct Timestamp<'s> {
|
||||
pub warning_delay: Option<WarningDelay>,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Debug, PartialEq, Clone)]
|
||||
pub enum TimestampType {
|
||||
Diary,
|
||||
Active,
|
||||
@@ -204,7 +204,7 @@ pub enum TimestampType {
|
||||
InactiveRange,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Debug, PartialEq, Clone)]
|
||||
pub enum TimestampRangeType {
|
||||
None,
|
||||
DateRange,
|
||||
|
||||
Reference in New Issue
Block a user