pub struct LazyContextImpl { /* private fields */ }Expand description
Concrete implementation of LazyContext.
Constructed by the #[derive(EntityType)] macro’s ILazyInit
implementation for each navigation field on an entity.
Implementations§
Source§impl LazyContextImpl
impl LazyContextImpl
Sourcepub fn new(
provider: Arc<dyn IDatabaseProvider>,
owner_snapshot: HashMap<String, DbValue>,
owner_key_values: HashMap<String, DbValue>,
navigation: NavigationMeta,
filter_map: Option<Arc<HashMap<String, CompiledFilter>>>,
depth: usize,
) -> Self
pub fn new( provider: Arc<dyn IDatabaseProvider>, owner_snapshot: HashMap<String, DbValue>, owner_key_values: HashMap<String, DbValue>, navigation: NavigationMeta, filter_map: Option<Arc<HashMap<String, CompiledFilter>>>, depth: usize, ) -> Self
Creates a new lazy context for a single navigation field.
Trait Implementations§
Source§impl LazyContext for LazyContextImpl
impl LazyContext for LazyContextImpl
Source§fn provider(&self) -> &Arc<dyn IDatabaseProvider>
fn provider(&self) -> &Arc<dyn IDatabaseProvider>
The database provider used to execute the lazy-load query.
Source§fn owner_snapshot(&self) -> &HashMap<String, DbValue>
fn owner_snapshot(&self) -> &HashMap<String, DbValue>
The owning entity’s full property snapshot (field_name → value). Read more
Source§fn owner_key_values(&self) -> &HashMap<String, DbValue>
fn owner_key_values(&self) -> &HashMap<String, DbValue>
The owning entity’s primary-key values (field_name → value). Read more
Metadata describing the navigation to lazy-load.
Source§fn filter_map(&self) -> Option<&HashMap<String, CompiledFilter>>
fn filter_map(&self) -> Option<&HashMap<String, CompiledFilter>>
Optional global query filters keyed by table name. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for LazyContextImpl
impl !UnwindSafe for LazyContextImpl
impl Freeze for LazyContextImpl
impl Send for LazyContextImpl
impl Sync for LazyContextImpl
impl Unpin for LazyContextImpl
impl UnsafeUnpin for LazyContextImpl
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