Bubble up planning variables to the headline.

This commit is contained in:
Tom Alexander
2023-10-02 20:37:46 -04:00
parent 2e1a946ac9
commit a80d171e4d
4 changed files with 78 additions and 10 deletions

View File

@@ -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)]

View File

@@ -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,