pub struct ModelSchemaOptions {
pub model_name: Option<String>,
pub field_names: BTreeMap<String, String>,
}Expand description
Table and column alias overrides for a core auth model.
Fields§
§model_name: Option<String>Physical database table name override.
field_names: BTreeMap<String, String>Logical field name to physical column name aliases.
Implementations§
Trait Implementations§
Source§impl Clone for ModelSchemaOptions
impl Clone for ModelSchemaOptions
Source§fn clone(&self) -> ModelSchemaOptions
fn clone(&self) -> ModelSchemaOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModelSchemaOptions
impl Debug for ModelSchemaOptions
Source§impl Default for ModelSchemaOptions
impl Default for ModelSchemaOptions
Source§fn default() -> ModelSchemaOptions
fn default() -> ModelSchemaOptions
Returns the “default value” for a type. Read more
impl Eq for ModelSchemaOptions
Source§impl PartialEq for ModelSchemaOptions
impl PartialEq for ModelSchemaOptions
Source§fn eq(&self, other: &ModelSchemaOptions) -> bool
fn eq(&self, other: &ModelSchemaOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModelSchemaOptions
Auto Trait Implementations§
impl Freeze for ModelSchemaOptions
impl RefUnwindSafe for ModelSchemaOptions
impl Send for ModelSchemaOptions
impl Sync for ModelSchemaOptions
impl Unpin for ModelSchemaOptions
impl UnsafeUnpin for ModelSchemaOptions
impl UnwindSafe for ModelSchemaOptions
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.