pub struct Paste {Show 16 fields
pub id: String,
pub title: Option<String>,
pub content: String,
pub language: String,
pub visibility: String,
pub views: u32,
pub created_at: String,
pub expires_at: Option<String>,
pub max_views: Option<u32>,
pub updated_at: Option<String>,
pub url: Option<String>,
pub category: Option<String>,
pub tags: Option<String>,
pub burn_after_read: Option<bool>,
pub encrypted: Option<bool>,
pub folder_id: Option<u64>,
}Fields§
§id: String§title: Option<String>§content: String§language: String§visibility: String§views: u32§created_at: String§expires_at: Option<String>§max_views: Option<u32>§updated_at: Option<String>§url: Option<String>§category: Option<String>§burn_after_read: Option<bool>§encrypted: Option<bool>§folder_id: Option<u64>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 Forget for Paste
impl Freeze for Paste
impl RefUnwindSafe for Paste
impl Send for Paste
impl Sync for Paste
impl Unpin for Paste
impl UnsafeUnpin 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