#[non_exhaustive]pub struct ContainerLogRotationConfiguration {
pub rotation_size: Option<String>,
pub max_files_to_keep: Option<i32>,
}Expand description
The settings for container log rotation.
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.rotation_size: Option<String>The file size at which to rotate logs. Minimum of 2KB, Maximum of 2GB.
max_files_to_keep: Option<i32>The number of files to keep in container after rotation.
Implementations§
source§impl ContainerLogRotationConfiguration
impl ContainerLogRotationConfiguration
sourcepub fn rotation_size(&self) -> Option<&str>
pub fn rotation_size(&self) -> Option<&str>
The file size at which to rotate logs. Minimum of 2KB, Maximum of 2GB.
sourcepub fn max_files_to_keep(&self) -> Option<i32>
pub fn max_files_to_keep(&self) -> Option<i32>
The number of files to keep in container after rotation.
source§impl ContainerLogRotationConfiguration
impl ContainerLogRotationConfiguration
sourcepub fn builder() -> ContainerLogRotationConfigurationBuilder
pub fn builder() -> ContainerLogRotationConfigurationBuilder
Creates a new builder-style object to manufacture ContainerLogRotationConfiguration.
Trait Implementations§
source§impl Clone for ContainerLogRotationConfiguration
impl Clone for ContainerLogRotationConfiguration
source§fn clone(&self) -> ContainerLogRotationConfiguration
fn clone(&self) -> ContainerLogRotationConfiguration
Returns a copy 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 PartialEq<ContainerLogRotationConfiguration> for ContainerLogRotationConfiguration
impl PartialEq<ContainerLogRotationConfiguration> for ContainerLogRotationConfiguration
source§fn eq(&self, other: &ContainerLogRotationConfiguration) -> bool
fn eq(&self, other: &ContainerLogRotationConfiguration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ContainerLogRotationConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for ContainerLogRotationConfiguration
impl Send for ContainerLogRotationConfiguration
impl Sync for ContainerLogRotationConfiguration
impl Unpin for ContainerLogRotationConfiguration
impl UnwindSafe for ContainerLogRotationConfiguration
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