pub enum IoK8sApiCoreV1ContainerImagePullPolicy {
Always,
IfNotPresent,
Never,
}Expand description
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
Possible enum values:
"Always"means that kubelet always attempts to pull the latest image. Container will fail If the pull fails."IfNotPresent"means that kubelet pulls if the image isn’t present on disk. Container will fail if the image isn’t present and the pull fails."Never"means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn’t present
Variants§
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1ContainerImagePullPolicy
impl Clone for IoK8sApiCoreV1ContainerImagePullPolicy
Source§fn clone(&self) -> IoK8sApiCoreV1ContainerImagePullPolicy
fn clone(&self) -> IoK8sApiCoreV1ContainerImagePullPolicy
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<'de> Deserialize<'de> for IoK8sApiCoreV1ContainerImagePullPolicy
impl<'de> Deserialize<'de> for IoK8sApiCoreV1ContainerImagePullPolicy
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 From<&IoK8sApiCoreV1ContainerImagePullPolicy> for IoK8sApiCoreV1ContainerImagePullPolicy
impl From<&IoK8sApiCoreV1ContainerImagePullPolicy> for IoK8sApiCoreV1ContainerImagePullPolicy
Source§fn from(value: &IoK8sApiCoreV1ContainerImagePullPolicy) -> Self
fn from(value: &IoK8sApiCoreV1ContainerImagePullPolicy) -> Self
Converts to this type from the input type.
Source§impl Ord for IoK8sApiCoreV1ContainerImagePullPolicy
impl Ord for IoK8sApiCoreV1ContainerImagePullPolicy
Source§fn cmp(&self, other: &IoK8sApiCoreV1ContainerImagePullPolicy) -> Ordering
fn cmp(&self, other: &IoK8sApiCoreV1ContainerImagePullPolicy) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IoK8sApiCoreV1ContainerImagePullPolicy
impl PartialEq for IoK8sApiCoreV1ContainerImagePullPolicy
Source§fn eq(&self, other: &IoK8sApiCoreV1ContainerImagePullPolicy) -> bool
fn eq(&self, other: &IoK8sApiCoreV1ContainerImagePullPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for IoK8sApiCoreV1ContainerImagePullPolicy
impl PartialOrd for IoK8sApiCoreV1ContainerImagePullPolicy
impl Copy for IoK8sApiCoreV1ContainerImagePullPolicy
impl Eq for IoK8sApiCoreV1ContainerImagePullPolicy
impl StructuralPartialEq for IoK8sApiCoreV1ContainerImagePullPolicy
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1ContainerImagePullPolicy
impl RefUnwindSafe for IoK8sApiCoreV1ContainerImagePullPolicy
impl Send for IoK8sApiCoreV1ContainerImagePullPolicy
impl Sync for IoK8sApiCoreV1ContainerImagePullPolicy
impl Unpin for IoK8sApiCoreV1ContainerImagePullPolicy
impl UnwindSafe for IoK8sApiCoreV1ContainerImagePullPolicy
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