pub struct PostView {
pub id: String,
pub thread_id: String,
pub thread_title: String,
pub author: String,
pub body: String,
pub labels: Vec<String>,
pub refs: Vec<String>,
pub depth: usize,
pub replies: usize,
pub attachments: usize,
pub created: DateTime<Utc>,
pub edited: Option<DateTime<Utc>>,
}Expand description
A single post flattened out of its tree, with context for search/list/watch.
Fields§
§id: StringDotted post ID.
thread_id: StringOwning thread ID.
thread_title: StringOwning thread title.
Author identity.
body: StringMessage body.
labels: Vec<String>Labels on this post.
refs: Vec<String>References on this post.
depth: usizeDepth in the tree (root = 0).
replies: usizeNumber of direct replies.
attachments: usizeNumber of attachments.
created: DateTime<Utc>Created timestamp.
edited: Option<DateTime<Utc>>Edited timestamp, if any.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PostView
impl<'de> Deserialize<'de> for PostView
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 PostView
Auto Trait Implementations§
impl Freeze for PostView
impl RefUnwindSafe for PostView
impl Send for PostView
impl Sync for PostView
impl Unpin for PostView
impl UnsafeUnpin for PostView
impl UnwindSafe for PostView
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