pub struct UserThread {
pub id: Option<String>,
pub reply_count: Option<i32>,
pub last_reply_at: Option<i64>,
pub last_viewed_at: Option<i64>,
pub participants: Option<Vec<Post>>,
pub post: Option<Box<Post>>,
}
Expand description
UserThread : a thread that user is following
Fields§
§id: Option<String>
ID of the post that is this thread’s root
reply_count: Option<i32>
number of replies in this thread
last_reply_at: Option<i64>
timestamp of the last post to this thread
last_viewed_at: Option<i64>
timestamp of the last time the user viewed this thread
participants: Option<Vec<Post>>
list of users participating in this thread. only includes IDs unless ‘extended’ was set to ‘true’
post: Option<Box<Post>>
Implementations§
Source§impl UserThread
impl UserThread
Sourcepub fn new() -> UserThread
pub fn new() -> UserThread
a thread that user is following
Trait Implementations§
Source§impl Clone for UserThread
impl Clone for UserThread
Source§fn clone(&self) -> UserThread
fn clone(&self) -> UserThread
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UserThread
impl Debug for UserThread
Source§impl Default for UserThread
impl Default for UserThread
Source§fn default() -> UserThread
fn default() -> UserThread
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserThread
impl<'de> Deserialize<'de> for UserThread
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
Source§impl PartialEq for UserThread
impl PartialEq for UserThread
Source§impl Serialize for UserThread
impl Serialize for UserThread
impl StructuralPartialEq for UserThread
Auto Trait Implementations§
impl Freeze for UserThread
impl RefUnwindSafe for UserThread
impl Send for UserThread
impl Sync for UserThread
impl Unpin for UserThread
impl UnwindSafe for UserThread
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