pub struct AddPost {
pub title: Option<String>,
pub body: Option<String>,
pub tags: Option<Vec<String>>,
pub reactions: Option<Reaction>,
pub views: Option<u32>,
pub user_id: Option<u32>,
}Fields§
§title: Option<String>§body: Option<String>§reactions: Option<Reaction>§views: Option<u32>§user_id: Option<u32>Trait Implementations§
Source§impl<'de> Deserialize<'de> for AddPost
impl<'de> Deserialize<'de> for AddPost
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 AddPost
impl RefUnwindSafe for AddPost
impl Send for AddPost
impl Sync for AddPost
impl Unpin for AddPost
impl UnwindSafe for AddPost
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