#[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
Sourcepub fn set_configs<T, V>(self, v: T) -> Self
pub fn set_configs<T, V>(self, v: T) -> Self
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.
§Example
use google_cloud_deploy_v1::model::skaffold_modules::SkaffoldGitSource;
let x = SkaffoldModules::new().set_source(Some(
google_cloud_deploy_v1::model::skaffold_modules::Source::Git(SkaffoldGitSource::default().into())));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.
§Example
use google_cloud_deploy_v1::model::skaffold_modules::SkaffoldGitSource;
let x = SkaffoldModules::new().set_git(SkaffoldGitSource::default()/* use setters */);
assert!(x.git().is_some());
assert!(x.google_cloud_storage().is_none());
assert!(x.google_cloud_build_repo().is_none());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.
§Example
use google_cloud_deploy_v1::model::skaffold_modules::SkaffoldGCSSource;
let x = SkaffoldModules::new().set_google_cloud_storage(SkaffoldGCSSource::default()/* use setters */);
assert!(x.google_cloud_storage().is_some());
assert!(x.git().is_none());
assert!(x.google_cloud_build_repo().is_none());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.
§Example
use google_cloud_deploy_v1::model::skaffold_modules::SkaffoldGCBRepoSource;
let x = SkaffoldModules::new().set_google_cloud_build_repo(SkaffoldGCBRepoSource::default()/* use setters */);
assert!(x.google_cloud_build_repo().is_some());
assert!(x.git().is_none());
assert!(x.google_cloud_storage().is_none());Trait Implementations§
Source§impl Clone for SkaffoldModules
impl Clone for SkaffoldModules
Source§fn clone(&self) -> SkaffoldModules
fn clone(&self) -> SkaffoldModules
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SkaffoldModules
impl Debug for SkaffoldModules
Source§impl Default for SkaffoldModules
impl Default for SkaffoldModules
Source§fn default() -> SkaffoldModules
fn default() -> SkaffoldModules
Source§impl Message for SkaffoldModules
impl Message for SkaffoldModules
Source§impl PartialEq for SkaffoldModules
impl PartialEq for SkaffoldModules
impl StructuralPartialEq for SkaffoldModules
Auto Trait Implementations§
impl Freeze for SkaffoldModules
impl RefUnwindSafe for SkaffoldModules
impl Send for SkaffoldModules
impl Sync for SkaffoldModules
impl Unpin for SkaffoldModules
impl UnsafeUnpin for SkaffoldModules
impl UnwindSafe for SkaffoldModules
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request