pub struct ElementJson {
pub epoch_ref: String,
pub human_ref: Option<String>,
pub date: String,
pub element_type: String,
pub tags: Vec<String>,
pub body: String,
pub status: Option<String>,
pub at: Option<String>,
pub start: Option<String>,
pub end: Option<String>,
pub name: Option<String>,
}Expand description
Flat JSON representation of any element type.
Fields§
§epoch_ref: StringEpoch ref e.g. “20260501.1”
human_ref: Option<String>Human-readable ref e.g. “task-1” (None if resolver has no mapping)
date: StringDate string “YYYY-MM-DD”
element_type: StringElement type: task, note, log, reminder, character
body: String§status: Option<String>§at: Option<String>§start: Option<String>§end: Option<String>§name: Option<String>Trait Implementations§
Source§impl Clone for ElementJson
impl Clone for ElementJson
Source§fn clone(&self) -> ElementJson
fn clone(&self) -> ElementJson
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElementJson
impl Debug for ElementJson
Source§impl<'de> Deserialize<'de> for ElementJson
impl<'de> Deserialize<'de> for ElementJson
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ElementJson
impl RefUnwindSafe for ElementJson
impl Send for ElementJson
impl Sync for ElementJson
impl Unpin for ElementJson
impl UnsafeUnpin for ElementJson
impl UnwindSafe for ElementJson
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more