pub struct Paste {
pub id: Uuid,
pub creator: String,
pub creation: DateTime<Utc>,
pub content: String,
pub unlisted: bool,
pub title: Option<String>,
pub description: Option<String>,
}
Fields§
§id: Uuid
§creator: String
§creation: DateTime<Utc>
§content: String
§unlisted: bool
§title: Option<String>
§description: Option<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Paste
impl<'de> Deserialize<'de> for Paste
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 Paste
impl RefUnwindSafe for Paste
impl Send for Paste
impl Sync for Paste
impl Unpin for Paste
impl UnwindSafe for Paste
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