#[non_exhaustive]pub struct SkaffoldModules {
pub configs: Vec<String>,
pub source: Option<Source>,
/* private fields */
}
Expand description
Skaffold Config modules and their remote source.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.configs: Vec<String>
Optional. The Skaffold Config modules to use from the specified source.
source: Option<Source>
The source that contains the Skaffold Config modules.
Implementations§
Source§impl SkaffoldModules
impl SkaffoldModules
pub fn new() -> Self
Sourcepub fn set_configs<T, V>(self, v: T) -> Self
pub fn set_configs<T, V>(self, v: T) -> Self
Sets the value of configs.
Sourcepub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
pub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
Sets the value of source.
Note that all the setters affecting source
are mutually
exclusive.
Sourcepub fn git(&self) -> Option<&Box<SkaffoldGitSource>>
pub fn git(&self) -> Option<&Box<SkaffoldGitSource>>
The value of source
if it holds a Git
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_git<T: Into<Box<SkaffoldGitSource>>>(self, v: T) -> Self
pub fn set_git<T: Into<Box<SkaffoldGitSource>>>(self, v: T) -> Self
Sets the value of source
to hold a Git
.
Note that all the setters affecting source
are
mutually exclusive.
Sourcepub fn google_cloud_storage(&self) -> Option<&Box<SkaffoldGCSSource>>
pub fn google_cloud_storage(&self) -> Option<&Box<SkaffoldGCSSource>>
The value of source
if it holds a GoogleCloudStorage
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_google_cloud_storage<T: Into<Box<SkaffoldGCSSource>>>(
self,
v: T,
) -> Self
pub fn set_google_cloud_storage<T: Into<Box<SkaffoldGCSSource>>>( self, v: T, ) -> Self
Sets the value of source
to hold a GoogleCloudStorage
.
Note that all the setters affecting source
are
mutually exclusive.
Sourcepub fn google_cloud_build_repo(&self) -> Option<&Box<SkaffoldGCBRepoSource>>
pub fn google_cloud_build_repo(&self) -> Option<&Box<SkaffoldGCBRepoSource>>
The value of source
if it holds a GoogleCloudBuildRepo
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_google_cloud_build_repo<T: Into<Box<SkaffoldGCBRepoSource>>>(
self,
v: T,
) -> Self
pub fn set_google_cloud_build_repo<T: Into<Box<SkaffoldGCBRepoSource>>>( self, v: T, ) -> Self
Sets the value of source
to hold a GoogleCloudBuildRepo
.
Note that all the setters affecting source
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for SkaffoldModules
impl Clone for SkaffoldModules
Source§fn clone(&self) -> SkaffoldModules
fn clone(&self) -> SkaffoldModules
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more