[][src]Struct derpiboorust::models::Image

pub struct Image {
    pub id: u64,
    pub created_at: DateTime<Utc>,
    pub updated_at: DateTime<Utc>,
    pub first_seen_at: DateTime<Utc>,
    pub score: i64,
    pub comment_count: u64,
    pub width: u64,
    pub height: u64,
    pub file_name: String,
    pub description: String,
    pub uploader: String,
    pub uploader_id: Option<Id>,
    pub image: String,
    pub upvotes: u64,
    pub downvotes: u64,
    pub faves: u64,
    pub tags: String,
    pub tag_ids: Vec<Id>,
    pub aspect_ratio: f64,
    pub original_format: String,
    pub mime_type: String,
    pub sha512_hash: String,
    pub orig_sha512_hash: Option<String>,
    pub source_url: String,
    pub representations: Representations,
    pub is_rendered: bool,
    pub is_optimized: bool,
    pub spoilered: Option<bool>,
}

Image model

Fields

id: u64created_at: DateTime<Utc>updated_at: DateTime<Utc>first_seen_at: DateTime<Utc>score: i64comment_count: u64width: u64height: u64file_name: Stringdescription: Stringuploader: Stringuploader_id: Option<Id>image: Stringupvotes: u64downvotes: u64faves: u64tags: Stringtag_ids: Vec<Id>aspect_ratio: f64original_format: Stringmime_type: Stringsha512_hash: Stringorig_sha512_hash: Option<String>source_url: Stringrepresentations: Representationsis_rendered: boolis_optimized: boolspoilered: Option<bool>

Trait Implementations

impl Debug for Image[src]

impl<'de> Deserialize<'de> for Image[src]

Auto Trait Implementations

impl Send for Image

impl Sync for Image

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T