pub struct AddComment {
pub body: String,
pub post_id: u32,
pub user_id: u32,
}Fields§
§body: String§post_id: u32§user_id: u32Trait Implementations§
Source§impl Debug for AddComment
impl Debug for AddComment
Source§impl<'de> Deserialize<'de> for AddComment
impl<'de> Deserialize<'de> for AddComment
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 AddComment
impl RefUnwindSafe for AddComment
impl Send for AddComment
impl Sync for AddComment
impl Unpin for AddComment
impl UnwindSafe for AddComment
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