pub struct ConfiguredOrmModule { /* private fields */ }Expand description
OrmModule::for_root(..) / OrmModule::from_config(): the module with
its options and strict-mode handlers.
Implementations§
Source§impl ConfiguredOrmModule
impl ConfiguredOrmModule
Sourcepub fn on_missing_attribute(
self,
handler: impl Fn(&Violation) -> Result<()> + Send + Sync + 'static,
) -> Self
pub fn on_missing_attribute( self, handler: impl Fn(&Violation) -> Result<()> + Send + Sync + 'static, ) -> Self
Lets handler decide about missing attributes in strict mode
(Ok(()) reads the field’s default instead of failing).
Trait Implementations§
Source§impl Clone for ConfiguredOrmModule
impl Clone for ConfiguredOrmModule
Source§impl Debug for ConfiguredOrmModule
impl Debug for ConfiguredOrmModule
Source§impl Module for ConfiguredOrmModule
impl Module for ConfiguredOrmModule
Source§fn id(&self) -> ModuleId
fn id(&self) -> ModuleId
The module identity.
for_root wrappers override this to return the id
of the module type they configure.Source§fn is_configured(&self) -> bool
fn is_configured(&self) -> bool
for_root(...) values return true; at most one configured instance per id.Source§fn register(&self, m: &mut ModuleBuilder)
fn register(&self, m: &mut ModuleBuilder)
Registers everything the module contributes.
Auto Trait Implementations§
impl !RefUnwindSafe for ConfiguredOrmModule
impl !UnwindSafe for ConfiguredOrmModule
impl Forget for ConfiguredOrmModule
impl Freeze for ConfiguredOrmModule
impl Move for ConfiguredOrmModule
impl Send for ConfiguredOrmModule
impl Sync for ConfiguredOrmModule
impl Unpin for ConfiguredOrmModule
impl UnsafeUnpin for ConfiguredOrmModule
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<M> IntoModules for Mwhere
M: Module,
impl<M> IntoModules for Mwhere
M: Module,
fn into_passed_modules(self) -> Vec<PassedModule>
Source§impl<T> ValueFor<Option<T>> for T
impl<T> ValueFor<Option<T>> for T
Source§fn into_value_for(self) -> Option<T>
fn into_value_for(self) -> Option<T>
The value as the column’s type.