[][src]Struct sn0int::models::Image

pub struct Image {
    pub id: i32,
    pub value: String,
    pub filename: Option<String>,
    pub mime: Option<String>,
    pub width: Option<i32>,
    pub height: Option<i32>,
    pub created: Option<NaiveDateTime>,
    pub latitude: Option<f32>,
    pub longitude: Option<f32>,
    pub nudity: Option<f32>,
    pub ahash: Option<String>,
    pub dhash: Option<String>,
    pub phash: Option<String>,
    pub unscoped: bool,
}

Fields

id: i32value: Stringfilename: Option<String>mime: Option<String>width: Option<i32>height: Option<i32>created: Option<NaiveDateTime>latitude: Option<f32>longitude: Option<f32>nudity: Option<f32>ahash: Option<String>dhash: Option<String>phash: Option<String>unscoped: bool

Trait Implementations

impl Debug for Image[src]

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

impl Detailed for Image[src]

type T = DetailedImage

impl HasTable for Image[src]

type Table = table

The table this type is associated with.

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

type Id = &'ident i32

The type of this struct's identifier. Read more

impl InsertableStruct<Image> for NewImage[src]

impl Model for Image[src]

type ID = str

impl PartialEq<Image> for Image[src]

impl Printable<PrintableImage> for Image[src]

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Image where
    (i32, String, Option<String>, Option<String>, Option<i32>, Option<i32>, Option<NaiveDateTime>, Option<f32>, Option<f32>, Option<f32>, Option<String>, Option<String>, Option<String>, bool): Queryable<__ST, __DB>, 
[src]

type Row = <(i32, String, Option<String>, Option<String>, Option<i32>, Option<i32>, Option<NaiveDateTime>, Option<f32>, Option<f32>, Option<f32>, Option<String>, Option<String>, Option<String>, bool) as Queryable<__ST, __DB>>::Row

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

impl Scopable for Image[src]

impl Serialize for Image[src]

impl StructuralPartialEq for Image[src]

impl Updateable<Image> for ImageUpdate[src]

impl Upsertable<Image> for NewImage[src]

type Update = ImageUpdate

Auto Trait Implementations

impl RefUnwindSafe for Image

impl Send for Image

impl Sync for Image

impl Unpin for Image

impl UnwindSafe for Image

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<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> IntoSql for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

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>,