Struct sn0int::models::BreachEmail[][src]

pub struct BreachEmail {
    pub id: i32,
    pub breach_id: i32,
    pub email_id: i32,
    pub password: Option<String>,
}

Fields

id: i32breach_id: i32email_id: i32password: Option<String>

Implementations

impl BreachEmail[src]

pub fn breach(&self, db: &Database) -> Result<Breach>[src]

Trait Implementations

impl<__FK> BelongsTo<Breach> for BreachEmail where
    __FK: Hash + Eq,
    &'__a i32: Into<Option<&'__a __FK>>,
    &'__a Breach: Identifiable<Id = &'__a __FK>, 
[src]

type ForeignKey = __FK

The foreign key of this struct

type ForeignKeyColumn = breach_id

The database column representing the foreign key of the table this struct represents Read more

impl<__FK> BelongsTo<Email> for BreachEmail where
    __FK: Hash + Eq,
    &'__a i32: Into<Option<&'__a __FK>>,
    &'__a Email: Identifiable<Id = &'__a __FK>, 
[src]

type ForeignKey = __FK

The foreign key of this struct

type ForeignKeyColumn = email_id

The database column representing the foreign key of the table this struct represents Read more

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

impl HasTable for BreachEmail[src]

type Table = table

The table this type is associated with.

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

type Id = &'ident i32

The type of this struct’s identifier. Read more

impl Model for BreachEmail[src]

type ID = (i32, i32, Option<String>)

impl Printable<PrintableBreachEmail> for BreachEmail[src]

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for BreachEmail where
    (i32, i32, i32, Option<String>): Queryable<__ST, __DB>, 
[src]

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

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

impl Serialize for BreachEmail[src]

impl Updateable<BreachEmail> for BreachEmailUpdate[src]

impl Upsertable<BreachEmail> for NewBreachEmail[src]

type Update = BreachEmailUpdate

Auto Trait Implementations

Blanket Implementations

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

impl<'a, Parent, Child> BelongingToDsl<&'a [Parent]> for Child where
    Child: HasTable + BelongsTo<Parent>,
    &'a Parent: Identifiable,
    Vec<<&'a Parent as Identifiable>::Id, Global>: AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>,
    <Child as HasTable>::Table: FilterDsl<In<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <Vec<<&'a Parent as Identifiable>::Id, Global> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>,
    <Child as BelongsTo<Parent>>::ForeignKeyColumn: ExpressionMethods
[src]

type Output = <<Child as HasTable>::Table as FilterDsl<In<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <Vec<<&'a Parent as Identifiable>::Id, Global> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>>::Output

The query returned by belonging_to

impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent, Global>> for Child where
    Child: BelongingToDsl<&'a [Parent]>, 
[src]

type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output

The query returned by belonging_to

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

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

impl<T> Conv for T

impl<T> Conv for T

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

impl<T> FmtForward for T

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> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

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> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv 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>,