Struct news_flash::models::thumbnail::Thumbnail[][src]

pub struct Thumbnail {
    pub article_id: ArticleID,
    pub last_try: NaiveDateTime,
    pub format: Option<String>,
    pub etag: Option<String>,
    pub source_url: Option<Url>,
    pub data: Option<Vec<u8>>,
    pub width: Option<i32>,
    pub height: Option<i32>,
}

Fields

article_id: ArticleIDlast_try: NaiveDateTimeformat: Option<String>etag: Option<String>source_url: Option<Url>data: Option<Vec<u8>>width: Option<i32>height: Option<i32>

Implementations

impl Thumbnail[src]

pub async fn from_url(
    url: &str,
    article_id: &ArticleID,
    client: &Client
) -> Result<Self, ThumbnailError>
[src]

Trait Implementations

impl Clone for Thumbnail[src]

impl Debug for Thumbnail[src]

impl Eq for Thumbnail[src]

impl HasTable for Thumbnail[src]

type Table = table

The table this type is associated with.

impl<'ident> Identifiable for &'ident Thumbnail[src]

type Id = &'ident ArticleID

The type of this struct’s identifier. Read more

impl PartialEq<Thumbnail> for Thumbnail[src]

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Thumbnail where
    (ArticleID, NaiveDateTime, Option<String>, Option<String>, Option<Url>, Option<Vec<u8>>, Option<i32>, Option<i32>): Queryable<__ST, __DB>, 
[src]

type Row = <(ArticleID, NaiveDateTime, Option<String>, Option<String>, Option<Url>, Option<Vec<u8>>, Option<i32>, Option<i32>) as Queryable<__ST, __DB>>::Row

The Rust type you’d like to map from. Read more

impl StructuralEq for Thumbnail[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoSql for T[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,