pub struct ContainerLimits {
pub max_depth: usize,
pub max_children: usize,
pub max_expanded_bytes: u64,
pub max_member_size: u64,
}Expand description
Expansion ceilings from the [containers] section of
rules/converters.toml, versioned with the rest of the rules.
Fields§
§max_depth: usizeMaximum nesting depth. The outer file is depth 0.
max_children: usizeMaximum members per container.
max_expanded_bytes: u64Cumulative inflated bytes across one top-level container’s whole tree, dedup copies included.
max_member_size: u64Maximum uncompressed bytes of one member.
Trait Implementations§
Source§impl Clone for ContainerLimits
impl Clone for ContainerLimits
Source§fn clone(&self) -> ContainerLimits
fn clone(&self) -> ContainerLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContainerLimits
impl Debug for ContainerLimits
Source§impl Default for ContainerLimits
impl Default for ContainerLimits
Source§impl<'de> Deserialize<'de> for ContainerLimits
impl<'de> Deserialize<'de> for ContainerLimits
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
Auto Trait Implementations§
impl Freeze for ContainerLimits
impl RefUnwindSafe for ContainerLimits
impl Send for ContainerLimits
impl Sync for ContainerLimits
impl Unpin for ContainerLimits
impl UnsafeUnpin for ContainerLimits
impl UnwindSafe for ContainerLimits
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,
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> ⓘ
Converts
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> ⓘ
Converts
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