#[non_exhaustive]pub struct CustomTargetSkaffoldActions {
pub render_action: String,
pub deploy_action: String,
pub include_skaffold_modules: Vec<SkaffoldModules>,
/* private fields */
}
Expand description
CustomTargetSkaffoldActions represents the CustomTargetType
configuration
using Skaffold custom actions.
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.render_action: String
Optional. The Skaffold custom action responsible for render operations. If
not provided then Cloud Deploy will perform the render operations via
skaffold render
.
deploy_action: String
Required. The Skaffold custom action responsible for deploy operations.
include_skaffold_modules: Vec<SkaffoldModules>
Optional. List of Skaffold modules Cloud Deploy will include in the Skaffold Config as required before performing diagnose.
Implementations§
Source§impl CustomTargetSkaffoldActions
impl CustomTargetSkaffoldActions
pub fn new() -> Self
Sourcepub fn set_render_action<T: Into<String>>(self, v: T) -> Self
pub fn set_render_action<T: Into<String>>(self, v: T) -> Self
Sets the value of render_action.
Sourcepub fn set_deploy_action<T: Into<String>>(self, v: T) -> Self
pub fn set_deploy_action<T: Into<String>>(self, v: T) -> Self
Sets the value of deploy_action.
Sourcepub fn set_include_skaffold_modules<T, V>(self, v: T) -> Self
pub fn set_include_skaffold_modules<T, V>(self, v: T) -> Self
Sets the value of include_skaffold_modules.
Trait Implementations§
Source§impl Clone for CustomTargetSkaffoldActions
impl Clone for CustomTargetSkaffoldActions
Source§fn clone(&self) -> CustomTargetSkaffoldActions
fn clone(&self) -> CustomTargetSkaffoldActions
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 CustomTargetSkaffoldActions
impl Debug for CustomTargetSkaffoldActions
Source§impl Default for CustomTargetSkaffoldActions
impl Default for CustomTargetSkaffoldActions
Source§fn default() -> CustomTargetSkaffoldActions
fn default() -> CustomTargetSkaffoldActions
Returns the “default value” for a type. Read more
impl StructuralPartialEq for CustomTargetSkaffoldActions
Auto Trait Implementations§
impl Freeze for CustomTargetSkaffoldActions
impl RefUnwindSafe for CustomTargetSkaffoldActions
impl Send for CustomTargetSkaffoldActions
impl Sync for CustomTargetSkaffoldActions
impl Unpin for CustomTargetSkaffoldActions
impl UnwindSafe for CustomTargetSkaffoldActions
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