pub enum LoadStrategy {
Eager,
OnDemand,
Predictive {
access_threshold: usize,
},
Batched {
batch_size: usize,
},
}Expand description
Strategy for loading schema elements.
Variants§
Eager
Load all elements eagerly (no lazy loading).
OnDemand
Load elements on first access.
Predictive
Preload frequently accessed elements.
Batched
Load elements in batches.
Trait Implementations§
Source§impl Clone for LoadStrategy
impl Clone for LoadStrategy
Source§fn clone(&self) -> LoadStrategy
fn clone(&self) -> LoadStrategy
Returns a duplicate of the value. Read more
1.0.0 · 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 LoadStrategy
impl Debug for LoadStrategy
Source§impl Default for LoadStrategy
impl Default for LoadStrategy
Source§fn default() -> LoadStrategy
fn default() -> LoadStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LoadStrategy
impl<'de> Deserialize<'de> for LoadStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LoadStrategy
impl PartialEq for LoadStrategy
Source§impl Serialize for LoadStrategy
impl Serialize for LoadStrategy
impl Eq for LoadStrategy
impl StructuralPartialEq for LoadStrategy
Auto Trait Implementations§
impl Freeze for LoadStrategy
impl RefUnwindSafe for LoadStrategy
impl Send for LoadStrategy
impl Sync for LoadStrategy
impl Unpin for LoadStrategy
impl UnwindSafe for LoadStrategy
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<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.