Skip to main content

StrictLoading

Trait StrictLoading 

Source
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§

Source

fn strict_loading(&self) -> bool

Returns whether strict loading is enabled for this instance.

Source

fn set_strict_loading(&mut self, enabled: bool)

Enables strict loading on this instance.

Provided Methods§

Source

fn check_strict_loading( &self, association: &str, ) -> Result<(), StrictLoadingViolation>

Checks whether lazily loading association is allowed.

Implementors§