Struct r34_api::Post

source ·
pub struct Post {
Show 17 fields pub file_url: String, pub image: String, pub tags: Vec<String>, pub width: u64, pub height: u64, pub sample: bool, pub sample_url: String, pub sample_width: u64, pub sample_height: u64, pub source: String, pub id: u64, pub score: u64, pub parent_id: u64, pub comment_count: u64, pub preview_url: String, pub owner: String, pub rating: Option<Rating>,
}
Expand description

Post struct. Holds all information about a Post

Fields§

§file_url: String

Url of Post’s File

§image: String

Name of Post’s File

§tags: Vec<String>

Post’s Tags

§width: u64

Width of Post’s File

§height: u64

Height of Post’s File

§sample: bool

Tells if the Post has a Sample

§sample_url: String

Url of Post’s Sample

§sample_width: u64

Height of Post’s Sample File

§sample_height: u64

Height of Post’s Sample File

§source: String

Source of Post e.g. Twitter User etc.

§id: u64

ID of Post

§score: u64

Score of Post

§parent_id: u64

ID of Post’s Parent Post

§comment_count: u64

Amount of Comments on the Post

§preview_url: String

Url of Post’s Preview Image

§owner: String

Name of Post’s Owner/Poster

§rating: Option<Rating>

Rating of Post e.g. Safe, Explicit or Questionable

Trait Implementations§

source§

impl Clone for Post

source§

fn clone(&self) -> Post

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for Post

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Display for Post

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Post

§

impl Send for Post

§

impl Sync for Post

§

impl Unpin for Post

§

impl UnwindSafe for Post

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.