pub struct Revocation {
pub id: i32,
pub hash: String,
pub revocation: String,
pub published: bool,
pub cert_id: i32,
}
Expand description
Revocation certificates (linked to user certificates)
Fields§
§id: i32
§hash: String
§revocation: String
§published: bool
§cert_id: i32
Trait Implementations§
Source§impl<'update> AsChangeset for &'update Revocation
impl<'update> AsChangeset for &'update Revocation
Source§type Changeset = <(Eq<hash, <&'update String as AsExpression<<hash as Expression>::SqlType>>::Expression>, Eq<revocation, <&'update String as AsExpression<<revocation as Expression>::SqlType>>::Expression>, Eq<published, <&'update bool as AsExpression<<published as Expression>::SqlType>>::Expression>, Eq<cert_id, <&'update i32 as AsExpression<<cert_id as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset
type Changeset = <(Eq<hash, <&'update String as AsExpression<<hash as Expression>::SqlType>>::Expression>, Eq<revocation, <&'update String as AsExpression<<revocation as Expression>::SqlType>>::Expression>, Eq<published, <&'update bool as AsExpression<<published 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 Revocation
impl<'update> AsChangeset for Revocation
Source§type Changeset = <(Eq<hash, <String as AsExpression<<hash as Expression>::SqlType>>::Expression>, Eq<revocation, <String as AsExpression<<revocation as Expression>::SqlType>>::Expression>, Eq<published, <bool as AsExpression<<published as Expression>::SqlType>>::Expression>, Eq<cert_id, <i32 as AsExpression<<cert_id as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset
type Changeset = <(Eq<hash, <String as AsExpression<<hash as Expression>::SqlType>>::Expression>, Eq<revocation, <String as AsExpression<<revocation as Expression>::SqlType>>::Expression>, Eq<published, <bool as AsExpression<<published 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 Revocationwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Cert: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<Cert> for Revocationwhere
__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 Clone for Revocation
impl Clone for Revocation
Source§fn clone(&self) -> Revocation
fn clone(&self) -> Revocation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Revocation
impl Debug for Revocation
Source§impl HasTable for Revocation
impl HasTable for Revocation
Source§impl<'ident> Identifiable for &'ident Revocation
impl<'ident> Identifiable for &'ident Revocation
Source§impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Revocation
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Revocation
Auto Trait Implementations§
impl Freeze for Revocation
impl RefUnwindSafe for Revocation
impl Send for Revocation
impl Sync for Revocation
impl Unpin for Revocation
impl UnwindSafe for Revocation
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