pub struct LifecycleSpec {
pub delete_on_exit: bool,
}Expand description
Lifecycle policy for service / job / cron containers.
Currently exposes a single delete_on_exit knob that, when true,
instructs higher layers to remove the container record (and its bundle)
once it has terminated. Other layers consume this field; this type is
purely descriptive.
Fields§
§delete_on_exit: boolWhen true, terminated containers (and their bundles) are removed
automatically rather than retained for inspection. Defaults to
false, preserving the historical retain-on-exit behavior.
Trait Implementations§
Source§impl Clone for LifecycleSpec
impl Clone for LifecycleSpec
Source§fn clone(&self) -> LifecycleSpec
fn clone(&self) -> LifecycleSpec
Returns a duplicate 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 Debug for LifecycleSpec
impl Debug for LifecycleSpec
Source§impl Default for LifecycleSpec
impl Default for LifecycleSpec
Source§fn default() -> LifecycleSpec
fn default() -> LifecycleSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LifecycleSpec
impl<'de> Deserialize<'de> for LifecycleSpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LifecycleSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LifecycleSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LifecycleSpec
impl PartialEq for LifecycleSpec
Source§impl Serialize for LifecycleSpec
impl Serialize for LifecycleSpec
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl ToSchema for LifecycleSpec
impl ToSchema for LifecycleSpec
impl Eq for LifecycleSpec
impl StructuralPartialEq for LifecycleSpec
Auto Trait Implementations§
impl Freeze for LifecycleSpec
impl RefUnwindSafe for LifecycleSpec
impl Send for LifecycleSpec
impl Sync for LifecycleSpec
impl Unpin for LifecycleSpec
impl UnsafeUnpin for LifecycleSpec
impl UnwindSafe for LifecycleSpec
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.