pub struct Paste<M> {
pub custom_url: String,
pub id: String,
pub group_name: String,
pub edit_password: String,
pub pub_date: u128,
pub edit_date: u128,
pub content: String,
pub content_html: String,
pub metadata: M,
pub views: usize,
}
Fields§
§custom_url: String
§id: String
§group_name: String
§edit_password: String
§pub_date: u128
§edit_date: u128
§content: String
§content_html: String
§metadata: M
§views: usize
Trait Implementations§
source§impl<'de, M> Deserialize<'de> for Paste<M>where
M: Deserialize<'de>,
impl<'de, M> Deserialize<'de> for Paste<M>where M: Deserialize<'de>,
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<M: PartialEq> PartialEq for Paste<M>
impl<M: PartialEq> PartialEq for Paste<M>
impl<M> StructuralPartialEq for Paste<M>
Auto Trait Implementations§
impl<M> RefUnwindSafe for Paste<M>where M: RefUnwindSafe,
impl<M> Send for Paste<M>where M: Send,
impl<M> Sync for Paste<M>where M: Sync,
impl<M> Unpin for Paste<M>where M: Unpin,
impl<M> UnwindSafe for Paste<M>where M: UnwindSafe,
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