pub struct ProjectionLimits { /* private fields */ }Available on crate feature
projection only.Expand description
Resource policy applied before allocation or parsing of projection data.
Implementations§
Source§impl ProjectionLimits
impl ProjectionLimits
Sourcepub const fn with_max_fields(self, limit: u64) -> Self
pub const fn with_max_fields(self, limit: u64) -> Self
Sets the maximum number of fields in one record.
Sourcepub const fn with_max_payload_len(self, limit: u64) -> Self
pub const fn with_max_payload_len(self, limit: u64) -> Self
Sets the maximum payload length of one field.
Sourcepub const fn with_max_record_len(self, limit: u64) -> Self
pub const fn with_max_record_len(self, limit: u64) -> Self
Sets the maximum serialized record length.
Sourcepub const fn max_fields(self) -> u64
pub const fn max_fields(self) -> u64
Returns the configured field-count limit.
Sourcepub const fn max_payload_len(self) -> u64
pub const fn max_payload_len(self) -> u64
Returns the configured per-field payload limit.
Sourcepub const fn max_record_len(self) -> u64
pub const fn max_record_len(self) -> u64
Returns the configured record-length limit.
Trait Implementations§
Source§impl Clone for ProjectionLimits
impl Clone for ProjectionLimits
impl Copy for ProjectionLimits
Source§impl Debug for ProjectionLimits
impl Debug for ProjectionLimits
Source§impl Default for ProjectionLimits
impl Default for ProjectionLimits
impl Eq for ProjectionLimits
Source§impl PartialEq for ProjectionLimits
impl PartialEq for ProjectionLimits
impl StructuralPartialEq for ProjectionLimits
Auto Trait Implementations§
impl Forget for ProjectionLimits
impl Freeze for ProjectionLimits
impl RefUnwindSafe for ProjectionLimits
impl Send for ProjectionLimits
impl Sync for ProjectionLimits
impl Unpin for ProjectionLimits
impl UnsafeUnpin for ProjectionLimits
impl UnwindSafe for ProjectionLimits
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