#[non_exhaustive]pub enum PullPolicyKind {
Always,
Never,
Missing,
IfNotPresentAlias,
Build,
Daily,
Weekly,
Every {
duration: String,
},
RefreshSchemaOnly,
Expression,
Other,
}Expand description
The recognized family of a service-level Compose image pull policy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Always
Pull the image before every service start.
Never
Never pull and rely on a cached image.
Missing
Pull only when the image is missing.
IfNotPresentAlias
The retained if_not_present alias for Self::Missing.
Build
Build the image before starting the service.
Daily
Check for an updated image once per day.
Weekly
Check for an updated image once per week.
Every
Check after the retained custom Compose duration.
RefreshSchemaOnly
The schema-recognized refresh spelling, which lacks matching service-field documentation.
Expression
A policy that still contains a Compose interpolation expression.
Other
An invalid or provider-specific value retained for diagnostics.
Trait Implementations§
Source§impl Clone for PullPolicyKind
impl Clone for PullPolicyKind
Source§fn clone(&self) -> PullPolicyKind
fn clone(&self) -> PullPolicyKind
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 PullPolicyKind
impl Debug for PullPolicyKind
impl Eq for PullPolicyKind
Source§impl PartialEq for PullPolicyKind
impl PartialEq for PullPolicyKind
impl StructuralPartialEq for PullPolicyKind
Auto Trait Implementations§
impl Freeze for PullPolicyKind
impl RefUnwindSafe for PullPolicyKind
impl Send for PullPolicyKind
impl Sync for PullPolicyKind
impl Unpin for PullPolicyKind
impl UnsafeUnpin for PullPolicyKind
impl UnwindSafe for PullPolicyKind
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