pub struct PostInfo {
pub path: PathBuf,
pub title: String,
pub slug: String,
pub created: NaiveDate,
pub updated: NaiveDate,
pub tags: Vec<String>,
pub status: HashMap<String, (bool, Option<String>)>,
}Expand description
Lightweight post info for display and sorting.
This is a projection of Content that avoids the Clone requirement
and contains only the fields needed for listing, sorting, and filtering.
Fields§
§path: PathBufPath to the post directory
title: StringPost title
slug: StringPost slug (directory name)
created: NaiveDateCreated date
updated: NaiveDateUpdated date (defaults to created if not specified in meta.toml)
Post tags
status: HashMap<String, (bool, Option<String>)>Platform publish status: platform_id → (is_published, optional_url)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PostInfo
impl RefUnwindSafe for PostInfo
impl Send for PostInfo
impl Sync for PostInfo
impl Unpin for PostInfo
impl UnsafeUnpin for PostInfo
impl UnwindSafe for PostInfo
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