pub struct PlanSummary {
pub file_stem: String,
pub title: Option<String>,
pub file_path: PathBuf,
pub size_bytes: u64,
pub modified: Option<SystemTime>,
}Expand description
Lightweight metadata for one plan, returned by
PlansRoot::list. Strips the content to keep listings cheap.
Fields§
§file_stem: StringFile stem (the basename of <stem>.md). The canonical
handle for PlansRoot::get.
title: Option<String>The first # heading in the document, when present.
file_path: PathBufAbsolute path to the source .md.
size_bytes: u64File size in bytes.
modified: Option<SystemTime>Last-modified time, when the filesystem reports one.
Trait Implementations§
Source§impl Clone for PlanSummary
impl Clone for PlanSummary
Source§fn clone(&self) -> PlanSummary
fn clone(&self) -> PlanSummary
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 PlanSummary
impl Debug for PlanSummary
Auto Trait Implementations§
impl Freeze for PlanSummary
impl RefUnwindSafe for PlanSummary
impl Send for PlanSummary
impl Sync for PlanSummary
impl Unpin for PlanSummary
impl UnsafeUnpin for PlanSummary
impl UnwindSafe for PlanSummary
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