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>,
}Expand description
Paste metadata and content.
Fields§
§id: StringUnique paste ID
title: Option<String>Paste title (if set)
content: StringPaste content
language: StringSyntax highlighting language
visibility: StringVisibility level
views: u32View count
created_at: StringCreation timestamp
expires_at: Option<String>Expiration timestamp (if applicable)
max_views: Option<u32>Maximum views limit (if set)
updated_at: Option<String>Last update timestamp (if updated)
url: Option<String>Web UI URL (for owned pastes)
category: Option<String>Category (if set)
Tags (if set)
burn_after_read: Option<bool>Burn after read flag
encrypted: Option<bool>Encrypted flag
folder_id: Option<u64>Folder ID (if in folder)
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