pub struct BlogPost {
pub id: String,
pub slug: String,
pub title: String,
pub body: String,
pub tags: Vec<String>,
pub status: BlogPostStatus,
pub source: BlogPostSource,
pub agent_id: Option<String>,
pub run_id: Option<String>,
pub created_at: String,
pub updated_at: String,
pub published_at: Option<String>,
}Expand description
BlogPost model.
Fields§
§id: String§slug: StringDerived from the title and unique. Re-minted whenever the title changes.
title: String§body: String§status: BlogPostStatus§source: BlogPostSourceWho last shaped it, not who started it — an edit to the title or body of an agent-written
post re-stamps this to manual.
agent_id: Option<String>§run_id: Option<String>§created_at: String§updated_at: String§published_at: Option<String>Null while a draft. Stamped on transition to published and cleared on a return to draft, so a republished post carries a new timestamp rather than its original.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BlogPost
impl<'de> Deserialize<'de> for BlogPost
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
impl StructuralPartialEq for BlogPost
Auto Trait Implementations§
impl Freeze for BlogPost
impl RefUnwindSafe for BlogPost
impl Send for BlogPost
impl Sync for BlogPost
impl Unpin for BlogPost
impl UnsafeUnpin for BlogPost
impl UnwindSafe for BlogPost
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