#[non_exhaustive]pub struct Source {
pub source: Option<Source>,
}Expand description
Location of the source in a supported storage service.
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.source: Option<Source>Location of source.
Implementations§
Source§impl Source
impl Source
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.
Sourcepub fn get_storage_source(&self) -> Option<&Box<StorageSource>>
pub fn get_storage_source(&self) -> Option<&Box<StorageSource>>
The value of source
if it holds a StorageSource, None if the field is not set or
holds a different branch.
Sourcepub fn get_repo_source(&self) -> Option<&Box<RepoSource>>
pub fn get_repo_source(&self) -> Option<&Box<RepoSource>>
The value of source
if it holds a RepoSource, None if the field is not set or
holds a different branch.
Sourcepub fn get_git_source(&self) -> Option<&Box<GitSource>>
pub fn get_git_source(&self) -> Option<&Box<GitSource>>
The value of source
if it holds a GitSource, None if the field is not set or
holds a different branch.
Sourcepub fn get_storage_source_manifest(&self) -> Option<&Box<StorageSourceManifest>>
pub fn get_storage_source_manifest(&self) -> Option<&Box<StorageSourceManifest>>
The value of source
if it holds a StorageSourceManifest, None if the field is not set or
holds a different branch.
Sourcepub fn set_storage_source<T: Into<Box<StorageSource>>>(self, v: T) -> Self
pub fn set_storage_source<T: Into<Box<StorageSource>>>(self, v: T) -> Self
Sets the value of source
to hold a StorageSource.
Note that all the setters affecting source are
mutually exclusive.
Sourcepub fn set_repo_source<T: Into<Box<RepoSource>>>(self, v: T) -> Self
pub fn set_repo_source<T: Into<Box<RepoSource>>>(self, v: T) -> Self
Sets the value of source
to hold a RepoSource.
Note that all the setters affecting source are
mutually exclusive.
Sourcepub fn set_git_source<T: Into<Box<GitSource>>>(self, v: T) -> Self
pub fn set_git_source<T: Into<Box<GitSource>>>(self, v: T) -> Self
Sets the value of source
to hold a GitSource.
Note that all the setters affecting source are
mutually exclusive.
Sourcepub fn set_storage_source_manifest<T: Into<Box<StorageSourceManifest>>>(
self,
v: T,
) -> Self
pub fn set_storage_source_manifest<T: Into<Box<StorageSourceManifest>>>( self, v: T, ) -> Self
Sets the value of source
to hold a StorageSourceManifest.
Note that all the setters affecting source are
mutually exclusive.