pub struct PasteCreated {
pub id: String,
pub url: String,
pub raw_url: String,
pub delete_token: String,
pub expires_at: Option<String>,
pub max_views: Option<u32>,
}Expand description
Response from successful paste creation.
Fields§
§id: StringUnique paste ID
url: StringWeb UI URL for the paste
raw_url: StringRaw content URL
delete_token: StringToken for anonymous deletion (save this!)
expires_at: Option<String>Expiration timestamp (if applicable)
max_views: Option<u32>Maximum views limit (if set)
Trait Implementations§
Source§impl Debug for PasteCreated
impl Debug for PasteCreated
Source§impl<'de> Deserialize<'de> for PasteCreated
impl<'de> Deserialize<'de> for PasteCreated
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 PasteCreated
impl Freeze for PasteCreated
impl RefUnwindSafe for PasteCreated
impl Send for PasteCreated
impl Sync for PasteCreated
impl Unpin for PasteCreated
impl UnsafeUnpin for PasteCreated
impl UnwindSafe for PasteCreated
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