pub struct ContainerLifetimeDefinition {
pub cleanup: String,
pub after: Option<OneOfDurationOrIso8601Expression>,
}Expand description
Represents the configuration of a container’s lifetime
Fields§
§cleanup: StringGets/sets the container cleanup policy to use
after: Option<OneOfDurationOrIso8601Expression>Gets/sets the duration after which to cleanup the container, in case the cleanup policy has been set to ‘eventually’
Trait Implementations§
Source§impl Clone for ContainerLifetimeDefinition
impl Clone for ContainerLifetimeDefinition
Source§fn clone(&self) -> ContainerLifetimeDefinition
fn clone(&self) -> ContainerLifetimeDefinition
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 ContainerLifetimeDefinition
impl Debug for ContainerLifetimeDefinition
Source§impl Default for ContainerLifetimeDefinition
impl Default for ContainerLifetimeDefinition
Source§fn default() -> ContainerLifetimeDefinition
fn default() -> ContainerLifetimeDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContainerLifetimeDefinition
impl<'de> Deserialize<'de> for ContainerLifetimeDefinition
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
Source§impl PartialEq for ContainerLifetimeDefinition
impl PartialEq for ContainerLifetimeDefinition
Source§fn eq(&self, other: &ContainerLifetimeDefinition) -> bool
fn eq(&self, other: &ContainerLifetimeDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ContainerLifetimeDefinition
impl StructuralPartialEq for ContainerLifetimeDefinition
Auto Trait Implementations§
impl Freeze for ContainerLifetimeDefinition
impl RefUnwindSafe for ContainerLifetimeDefinition
impl Send for ContainerLifetimeDefinition
impl Sync for ContainerLifetimeDefinition
impl Unpin for ContainerLifetimeDefinition
impl UnsafeUnpin for ContainerLifetimeDefinition
impl UnwindSafe for ContainerLifetimeDefinition
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