#[non_exhaustive]pub struct LookupInOptions {
pub access_deleted: Option<bool>,
pub retry_strategy: Option<Arc<dyn RetryStrategy>>,
}Expand description
Options for Collection::lookup_in.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.access_deleted: Option<bool>If true, the operation can access soft-deleted (tombstoned) documents.
retry_strategy: Option<Arc<dyn RetryStrategy>>Custom retry strategy for this operation.
Implementations§
Source§impl LookupInOptions
impl LookupInOptions
Sourcepub fn access_deleted(self, access_deleted: bool) -> Self
pub fn access_deleted(self, access_deleted: bool) -> Self
If true, allows accessing soft-deleted (tombstoned) documents.
Sourcepub fn retry_strategy(self, retry_strategy: Arc<dyn RetryStrategy>) -> Self
pub fn retry_strategy(self, retry_strategy: Arc<dyn RetryStrategy>) -> Self
Sets a custom retry strategy for this operation.
Trait Implementations§
Source§impl Clone for LookupInOptions
impl Clone for LookupInOptions
Source§fn clone(&self) -> LookupInOptions
fn clone(&self) -> LookupInOptions
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 LookupInOptions
impl Debug for LookupInOptions
Source§impl Default for LookupInOptions
impl Default for LookupInOptions
Source§fn default() -> LookupInOptions
fn default() -> LookupInOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LookupInOptions
impl !RefUnwindSafe for LookupInOptions
impl Send for LookupInOptions
impl Sync for LookupInOptions
impl Unpin for LookupInOptions
impl UnsafeUnpin for LookupInOptions
impl !UnwindSafe for LookupInOptions
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