#[non_exhaustive]pub struct Standard {
pub verify: bool,
pub predeploy: Option<Predeploy>,
pub postdeploy: Option<Postdeploy>,
/* private fields */
}
Expand description
Standard represents the standard deployment strategy.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.verify: bool
Optional. Whether to verify a deployment via skaffold verify
.
predeploy: Option<Predeploy>
Optional. Configuration for the predeploy job. If this is not configured, the predeploy job will not be present.
postdeploy: Option<Postdeploy>
Optional. Configuration for the postdeploy job. If this is not configured, the postdeploy job will not be present.
Implementations§
Source§impl Standard
impl Standard
pub fn new() -> Self
Sourcepub fn set_verify<T: Into<bool>>(self, v: T) -> Self
pub fn set_verify<T: Into<bool>>(self, v: T) -> Self
Sets the value of verify.
Sourcepub fn set_predeploy<T>(self, v: T) -> Self
pub fn set_predeploy<T>(self, v: T) -> Self
Sets the value of predeploy.
Sourcepub fn set_or_clear_predeploy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_predeploy<T>(self, v: Option<T>) -> Self
Sets or clears the value of predeploy.
Sourcepub fn set_postdeploy<T>(self, v: T) -> Selfwhere
T: Into<Postdeploy>,
pub fn set_postdeploy<T>(self, v: T) -> Selfwhere
T: Into<Postdeploy>,
Sets the value of postdeploy.
Sourcepub fn set_or_clear_postdeploy<T>(self, v: Option<T>) -> Selfwhere
T: Into<Postdeploy>,
pub fn set_or_clear_postdeploy<T>(self, v: Option<T>) -> Selfwhere
T: Into<Postdeploy>,
Sets or clears the value of postdeploy.
Trait Implementations§
impl StructuralPartialEq for Standard
Auto Trait Implementations§
impl Freeze for Standard
impl RefUnwindSafe for Standard
impl Send for Standard
impl Sync for Standard
impl Unpin for Standard
impl UnwindSafe for Standard
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