pub trait StrictLoading {
// Required methods
fn strict_loading(&self) -> bool;
fn set_strict_loading(&mut self, enabled: bool);
// Provided method
fn check_strict_loading(
&self,
association: &str,
) -> Result<(), StrictLoadingViolation> { ... }
}Expand description
Trait for models that support strict-loading mode.
Required Methods§
Sourcefn strict_loading(&self) -> bool
fn strict_loading(&self) -> bool
Returns whether strict loading is enabled for this instance.
Sourcefn set_strict_loading(&mut self, enabled: bool)
fn set_strict_loading(&mut self, enabled: bool)
Enables strict loading on this instance.
Provided Methods§
Sourcefn check_strict_loading(
&self,
association: &str,
) -> Result<(), StrictLoadingViolation>
fn check_strict_loading( &self, association: &str, ) -> Result<(), StrictLoadingViolation>
Checks whether lazily loading association is allowed.