pub struct CertEmail {
pub id: i32,
pub addr: String,
pub cert_id: i32,
}
Expand description
Email addresses that are associated with user certificates
Fields§
§id: i32
§addr: String
§cert_id: i32
Trait Implementations§
Source§impl<'update> AsChangeset for &'update CertEmail
impl<'update> AsChangeset for &'update CertEmail
Source§type Changeset = <(Eq<addr, <&'update String as AsExpression<<addr as Expression>::SqlType>>::Expression>, Eq<cert_id, <&'update i32 as AsExpression<<cert_id as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset
type Changeset = <(Eq<addr, <&'update String as AsExpression<<addr as Expression>::SqlType>>::Expression>, Eq<cert_id, <&'update i32 as AsExpression<<cert_id as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert
self
into the actual update statement being executedSource§impl<'update> AsChangeset for CertEmail
impl<'update> AsChangeset for CertEmail
Source§type Changeset = <(Eq<addr, <String as AsExpression<<addr as Expression>::SqlType>>::Expression>, Eq<cert_id, <i32 as AsExpression<<cert_id as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset
type Changeset = <(Eq<addr, <String as AsExpression<<addr as Expression>::SqlType>>::Expression>, Eq<cert_id, <i32 as AsExpression<<cert_id as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert
self
into the actual update statement being executedSource§impl<__FK> BelongsTo<Cert> for CertEmailwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Cert: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<Cert> for CertEmailwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Cert: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = cert_id
type ForeignKeyColumn = cert_id
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<'ident> Identifiable for &'ident CertEmail
impl<'ident> Identifiable for &'ident CertEmail
Auto Trait Implementations§
impl Freeze for CertEmail
impl RefUnwindSafe for CertEmail
impl Send for CertEmail
impl Sync for CertEmail
impl Unpin for CertEmail
impl UnwindSafe for CertEmail
Blanket Implementations§
Source§impl<'a, Parent, Child> BelongingToDsl<&'a [Parent]> for Childwhere
&'a Parent: Identifiable,
Child: HasTable + BelongsTo<Parent>,
Vec<<&'a Parent as Identifiable>::Id>: 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> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>,
<Child as BelongsTo<Parent>>::ForeignKeyColumn: ExpressionMethods,
impl<'a, Parent, Child> BelongingToDsl<&'a [Parent]> for Childwhere
&'a Parent: Identifiable,
Child: HasTable + BelongsTo<Parent>,
Vec<<&'a Parent as Identifiable>::Id>: 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> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>,
<Child as BelongsTo<Parent>>::ForeignKeyColumn: ExpressionMethods,
Source§type Output = <<Child as HasTable>::Table as FilterDsl<In<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <Vec<<&'a Parent as Identifiable>::Id> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>>::Output
type Output = <<Child as HasTable>::Table as FilterDsl<In<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <Vec<<&'a Parent as Identifiable>::Id> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>>::Output
The query returned by
belonging_to
Source§fn belonging_to(
parents: &'a [Parent],
) -> <Child as BelongingToDsl<&'a [Parent]>>::Output
fn belonging_to( parents: &'a [Parent], ) -> <Child as BelongingToDsl<&'a [Parent]>>::Output
Get the record(s) belonging to record(s)
other
Source§impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent>> for Childwhere
Child: BelongingToDsl<&'a [Parent]>,
impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent>> for Childwhere
Child: BelongingToDsl<&'a [Parent]>,
Source§type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output
type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output
The query returned by
belonging_to
Source§fn belonging_to(
parents: &'a Vec<Parent>,
) -> <Child as BelongingToDsl<&'a Vec<Parent>>>::Output
fn belonging_to( parents: &'a Vec<Parent>, ) -> <Child as BelongingToDsl<&'a Vec<Parent>>>::Output
Get the record(s) belonging to record(s)
other
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more