#[non_exhaustive]pub enum GeneratedPullPolicy {
Always,
Never,
Missing,
IfNotPresentAlias,
Build,
Daily,
Weekly,
Every(GeneratedString),
}Expand description
A documented service-level Compose image pull policy selected for generated output.
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 before every service start.
Never
Never pull and rely on a cached image.
Missing
Pull only when the image is missing.
IfNotPresentAlias
Emit the retained if_not_present alias.
Build
Build the image before starting the service.
Daily
Check once per day.
Weekly
Check once per week.
Every(GeneratedString)
Check after an exact caller-supplied duration spelling.
Trait Implementations§
Source§impl Clone for GeneratedPullPolicy
impl Clone for GeneratedPullPolicy
Source§fn clone(&self) -> GeneratedPullPolicy
fn clone(&self) -> GeneratedPullPolicy
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 GeneratedPullPolicy
impl Debug for GeneratedPullPolicy
impl Eq for GeneratedPullPolicy
Source§impl PartialEq for GeneratedPullPolicy
impl PartialEq for GeneratedPullPolicy
impl StructuralPartialEq for GeneratedPullPolicy
Auto Trait Implementations§
impl Freeze for GeneratedPullPolicy
impl RefUnwindSafe for GeneratedPullPolicy
impl Send for GeneratedPullPolicy
impl Sync for GeneratedPullPolicy
impl Unpin for GeneratedPullPolicy
impl UnsafeUnpin for GeneratedPullPolicy
impl UnwindSafe for GeneratedPullPolicy
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