pub struct Thread {
pub version: u32,
pub id: String,
pub title: String,
pub root: Post,
pub created: DateTime<Utc>,
pub updated: DateTime<Utc>,
}Expand description
A forum thread: a root Post plus its nested reply tree. Stored as one file
per thread under .wipe/forum/<id>.json, so replies to different threads never
conflict and deleting a thread is deleting a file.
Fields§
§version: u32On-disk format version.
id: StringThread ID, e.g. F-1 (also the ID of its root post).
title: StringThread title (the headline of the root post).
root: PostThe root post and, nested within it, the whole reply tree.
created: DateTime<Utc>When the thread was created.
updated: DateTime<Utc>When anything in the thread last changed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Thread
impl<'de> Deserialize<'de> for Thread
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 Thread
Auto Trait Implementations§
impl Freeze for Thread
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnsafeUnpin for Thread
impl UnwindSafe for Thread
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