pub struct CollectionResourceLimits { /* private fields */ }Expand description
Collection-local logical resource budgets.
These limits bound published authoritative/derived logical payloads and the
explicit candidate/batch admission units. max_accounted_bytes is
deterministic engine accounting, not a promise about allocator overhead,
temporary construction memory, or process RSS.
Implementations§
Source§impl CollectionResourceLimits
impl CollectionResourceLimits
Sourcepub fn try_with_max_documents(self, limit: u64) -> Result<Self>
pub fn try_with_max_documents(self, limit: u64) -> Result<Self>
Limits the document count of every published generation.
Sourcepub fn try_with_max_accounted_bytes(self, limit: u64) -> Result<Self>
pub fn try_with_max_accounted_bytes(self, limit: u64) -> Result<Self>
Limits authoritative serialized bytes plus derived payload estimates.
Sourcepub fn try_with_max_query_candidates(self, limit: u64) -> Result<Self>
pub fn try_with_max_query_candidates(self, limit: u64) -> Result<Self>
Limits planned exact/refinement candidates for one query operation.
Sourcepub fn try_with_max_write_batch_documents(self, limit: u64) -> Result<Self>
pub fn try_with_max_write_batch_documents(self, limit: u64) -> Result<Self>
Limits documents targeted by one explicit or filter-derived write batch.
Sourcepub fn max_documents(self) -> Option<u64>
pub fn max_documents(self) -> Option<u64>
Returns the retained-document limit, or None when unbounded.
Sourcepub fn max_accounted_bytes(self) -> Option<u64>
pub fn max_accounted_bytes(self) -> Option<u64>
Returns the logical accounted-byte limit, or None when unbounded.
Sourcepub fn max_query_candidates(self) -> Option<u64>
pub fn max_query_candidates(self) -> Option<u64>
Returns the per-query candidate limit, or None when unbounded.
Sourcepub fn max_write_batch_documents(self) -> Option<u64>
pub fn max_write_batch_documents(self) -> Option<u64>
Returns the per-write document limit, or None when unbounded.
Trait Implementations§
Source§impl Clone for CollectionResourceLimits
impl Clone for CollectionResourceLimits
impl Copy for CollectionResourceLimits
Source§impl Debug for CollectionResourceLimits
impl Debug for CollectionResourceLimits
Source§impl Default for CollectionResourceLimits
impl Default for CollectionResourceLimits
Source§impl<'de> Deserialize<'de> for CollectionResourceLimits
impl<'de> Deserialize<'de> for CollectionResourceLimits
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>,
impl Eq for CollectionResourceLimits
Source§impl PartialEq for CollectionResourceLimits
impl PartialEq for CollectionResourceLimits
Source§impl Serialize for CollectionResourceLimits
impl Serialize for CollectionResourceLimits
impl StructuralPartialEq for CollectionResourceLimits
Auto Trait Implementations§
impl Freeze for CollectionResourceLimits
impl RefUnwindSafe for CollectionResourceLimits
impl Send for CollectionResourceLimits
impl Sync for CollectionResourceLimits
impl Unpin for CollectionResourceLimits
impl UnsafeUnpin for CollectionResourceLimits
impl UnwindSafe for CollectionResourceLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more