Struct openpgp_ca_lib::db::models::Cert [−][src]
pub struct Cert { pub id: i32, pub fingerprint: String, pub pub_cert: String, pub user_id: Option<i32>, pub delisted: bool, pub inactive: bool, }
Fields
id: i32
fingerprint: String
pub_cert: String
user_id: Option<i32>
delisted: bool
inactive: bool
Trait Implementations
impl<'update> AsChangeset for &'update Cert
[src]
impl<'update> AsChangeset for &'update Cert
[src]type Target = table
type Target = table
The table which Self::Changeset
will be updating
type Changeset = <(Eq<fingerprint, &'update String>, Eq<pub_cert, &'update String>, Option<Eq<user_id, &'update i32>>, Eq<delisted, &'update bool>, Eq<inactive, &'update bool>) as AsChangeset>::Changeset
type Changeset = <(Eq<fingerprint, &'update String>, Eq<pub_cert, &'update String>, Option<Eq<user_id, &'update i32>>, Eq<delisted, &'update bool>, Eq<inactive, &'update bool>) as AsChangeset>::Changeset
The update statement this type represents
fn as_changeset(self) -> Self::Changeset
[src]
fn as_changeset(self) -> Self::Changeset
[src]Convert self
into the actual update statement being executed
impl<'update> AsChangeset for Cert
[src]
impl<'update> AsChangeset for Cert
[src]type Target = table
type Target = table
The table which Self::Changeset
will be updating
type Changeset = <(Eq<fingerprint, String>, Eq<pub_cert, String>, Option<Eq<user_id, i32>>, Eq<delisted, bool>, Eq<inactive, bool>) as AsChangeset>::Changeset
type Changeset = <(Eq<fingerprint, String>, Eq<pub_cert, String>, Option<Eq<user_id, i32>>, Eq<delisted, bool>, Eq<inactive, bool>) as AsChangeset>::Changeset
The update statement this type represents
fn as_changeset(self) -> Self::Changeset
[src]
fn as_changeset(self) -> Self::Changeset
[src]Convert self
into the actual update statement being executed
impl<__FK> BelongsTo<Cert> for CertEmail where
__FK: Hash + Eq,
&'__a i32: Into<Option<&'__a __FK>>,
&'__a Cert: Identifiable<Id = &'__a __FK>,
[src]
impl<__FK> BelongsTo<Cert> for CertEmail where
__FK: Hash + Eq,
&'__a i32: Into<Option<&'__a __FK>>,
&'__a Cert: Identifiable<Id = &'__a __FK>,
[src]type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
type ForeignKeyColumn = cert_id
type ForeignKeyColumn = cert_id
The database column representing the foreign key of the table this struct represents Read more
fn foreign_key(&self) -> Option<&Self::ForeignKey>
[src]
fn foreign_key(&self) -> Option<&Self::ForeignKey>
[src]Returns the foreign key for self
fn foreign_key_column() -> Self::ForeignKeyColumn
[src]
fn foreign_key_column() -> Self::ForeignKeyColumn
[src]Returns the foreign key column of this struct’s table
impl<__FK> BelongsTo<Cert> for Revocation where
__FK: Hash + Eq,
&'__a i32: Into<Option<&'__a __FK>>,
&'__a Cert: Identifiable<Id = &'__a __FK>,
[src]
impl<__FK> BelongsTo<Cert> for Revocation where
__FK: Hash + Eq,
&'__a i32: Into<Option<&'__a __FK>>,
&'__a Cert: Identifiable<Id = &'__a __FK>,
[src]type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
type ForeignKeyColumn = cert_id
type ForeignKeyColumn = cert_id
The database column representing the foreign key of the table this struct represents Read more
fn foreign_key(&self) -> Option<&Self::ForeignKey>
[src]
fn foreign_key(&self) -> Option<&Self::ForeignKey>
[src]Returns the foreign key for self
fn foreign_key_column() -> Self::ForeignKeyColumn
[src]
fn foreign_key_column() -> Self::ForeignKeyColumn
[src]Returns the foreign key column of this struct’s table
impl BelongsTo<User> for Cert
[src]
impl BelongsTo<User> for Cert
[src]type ForeignKey = i32
type ForeignKey = i32
The foreign key of this struct
type ForeignKeyColumn = user_id
type ForeignKeyColumn = user_id
The database column representing the foreign key of the table this struct represents Read more
fn foreign_key(&self) -> Option<&Self::ForeignKey>
[src]
fn foreign_key(&self) -> Option<&Self::ForeignKey>
[src]Returns the foreign key for self
fn foreign_key_column() -> Self::ForeignKeyColumn
[src]
fn foreign_key_column() -> Self::ForeignKeyColumn
[src]Returns the foreign key column of this struct’s table
impl<'ident> Identifiable for &'ident Cert
[src]
impl<'ident> Identifiable for &'ident Cert
[src]impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Cert where
(i32, String, String, Option<i32>, bool, bool): Queryable<__ST, __DB>,
[src]
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Cert where
(i32, String, String, Option<i32>, bool, bool): Queryable<__ST, __DB>,
[src]impl Eq for Cert
[src]
impl StructuralEq for Cert
[src]
impl StructuralPartialEq for Cert
[src]
Auto Trait Implementations
impl RefUnwindSafe for Cert
impl Send for Cert
impl Sync for Cert
impl Unpin for Cert
impl UnwindSafe for Cert
Blanket Implementations
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]
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
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
pub fn belonging_to(
parents: &'a [Parent]
) -> <Child as BelongingToDsl<&'a [Parent]>>::Output
[src]
pub fn belonging_to(
parents: &'a [Parent]
) -> <Child as BelongingToDsl<&'a [Parent]>>::Output
[src]Get the record(s) belonging to record(s) other
impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent, Global>> for Child where
Child: BelongingToDsl<&'a [Parent]>,
[src]
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
type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output
The query returned by belonging_to
pub fn belonging_to(
parents: &'a Vec<Parent, Global>
) -> <Child as BelongingToDsl<&'a Vec<Parent, Global>>>::Output
[src]
pub fn belonging_to(
parents: &'a Vec<Parent, Global>
) -> <Child as BelongingToDsl<&'a Vec<Parent, Global>>>::Output
[src]Get the record(s) belonging to record(s) other
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> IntoSql for T
[src]
impl<T> IntoSql for T
[src]fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]Convert &self
to an expression for Diesel’s query builder. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more