Struct authenticator::models::provider::DieselProvider
source · pub struct DieselProvider {
pub id: i32,
pub name: String,
pub website: Option<String>,
pub help_url: Option<String>,
pub image_uri: Option<String>,
pub period: i32,
pub digits: i32,
pub default_counter: i32,
pub algorithm: String,
pub method: String,
}
Fields§
§id: i32
§name: String
§website: Option<String>
§help_url: Option<String>
§image_uri: Option<String>
§period: i32
§digits: i32
§default_counter: i32
§algorithm: String
§method: String
Trait Implementations§
source§impl<__FK> BelongsTo<&DieselProvider> for DieselAccountwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a DieselProvider: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<&DieselProvider> for DieselAccountwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a DieselProvider: Identifiable<Id = &'__a __FK>,
§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
§type ForeignKeyColumn = provider_id
type ForeignKeyColumn = provider_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<__FK> BelongsTo<DieselProvider> for DieselAccountwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a DieselProvider: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<DieselProvider> for DieselAccountwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a DieselProvider: Identifiable<Id = &'__a __FK>,
§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
§type ForeignKeyColumn = provider_id
type ForeignKeyColumn = provider_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 From<&Provider> for DieselProvider
impl From<&Provider> for DieselProvider
source§impl From<DieselProvider> for Provider
impl From<DieselProvider> for Provider
source§fn from(p: DieselProvider) -> Self
fn from(p: DieselProvider) -> Self
Converts to this type from the input type.
source§impl HasTable for DieselProvider
impl HasTable for DieselProvider
source§impl<'ident> Identifiable for &'ident DieselProvider
impl<'ident> Identifiable for &'ident DieselProvider
source§impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9), __DB> for DieselProvider
impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9), __DB> for DieselProvider
Auto Trait Implementations§
impl RefUnwindSafe for DieselProvider
impl Send for DieselProvider
impl Sync for DieselProvider
impl Unpin for DieselProvider
impl UnwindSafe for DieselProvider
Blanket Implementations§
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoSql for T
impl<T> IntoSql for T
§impl<T, ST, DB> StaticallySizedRow<ST, DB> for Twhere
ST: SqlTypeOrSelectable + TupleSize,
T: Queryable<ST, DB>,
DB: Backend,
impl<T, ST, DB> StaticallySizedRow<ST, DB> for Twhere
ST: SqlTypeOrSelectable + TupleSize,
T: Queryable<ST, DB>,
DB: Backend,
§const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
The number of fields that this type will consume.