Struct pastemyst::paste::PasteObject [−][src]
The paste object recieved when
getting a paste. It contains
both the PastyObject
and
EditHistory
in an array.
API Docs
The relevent link to the API documentation is: https://paste.myst.rs/api-docs/objects
Examples
let _foo: PasteObject = get_paste("hipfqanx");
Fields
_id: String
Id of the paste.
ownerId: String
Id of the owner, if it doesn't have an owner it's set to "".
title: String
Title of the paste.
createdAt: u64
Unix time of when the paste is created.
expiresIn: String
When the paste will expire,
possible values are
never
, 1h
, 2h
, 10h
,
1d
, 2d
, 1w
, 1m
, 1y
.
deletesAt: u64
When the paste will be deleted, if it has no expiry time it's set to 0.
stars: u64
Number of stars the paste received.
isPrivate: bool
If it's private it's only accessible by the owner.
isPublic: bool
Is it displayed on the owner's public profile.
List of tags.
pasties: Vec<PastyObject>
List of pasties/files in the paste, can't be empty.
edits: Vec<EditHistory>
List of edits.
Trait Implementations
impl<'de> Deserialize<'de> for PasteObject
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for PasteObject
[src]
impl Send for PasteObject
[src]
impl Sync for PasteObject
[src]
impl Unpin for PasteObject
[src]
impl UnwindSafe for PasteObject
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,