pub struct PostComment {
pub id: u32,
pub body: String,
pub post_id: u32,
pub likes: u32,
pub user: UserProfile,
}Fields§
§id: u32§body: String§post_id: u32§likes: u32§user: UserProfileTrait Implementations§
Source§impl Debug for PostComment
impl Debug for PostComment
Source§impl<'de> Deserialize<'de> for PostComment
impl<'de> Deserialize<'de> for PostComment
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
Auto Trait Implementations§
impl Freeze for PostComment
impl RefUnwindSafe for PostComment
impl Send for PostComment
impl Sync for PostComment
impl Unpin for PostComment
impl UnwindSafe for PostComment
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