#[non_exhaustive]pub struct ArtifactConfig {
pub uri: String,
pub artifact_storage: Option<ArtifactStorage>,
pub artifact_metadata_storage: Option<ArtifactMetadataStorage>,
/* private fields */
}Expand description
The artifact config of the artifact that is deployed.
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.uri: StringRequired. Immutable. The URI of the artifact that is deployed.
e.g. us-docker.pkg.dev/my-project/my-repo/image.
The URI does not include the tag / digest because it captures a lineage of
artifacts.
artifact_storage: Option<ArtifactStorage>The storage location of the artifact.
artifact_metadata_storage: Option<ArtifactMetadataStorage>The storage location of the artifact metadata.
Implementations§
Source§impl ArtifactConfig
impl ArtifactConfig
Sourcepub fn set_artifact_storage<T: Into<Option<ArtifactStorage>>>(
self,
v: T,
) -> Self
pub fn set_artifact_storage<T: Into<Option<ArtifactStorage>>>( self, v: T, ) -> Self
Sets the value of artifact_storage.
Note that all the setters affecting artifact_storage are mutually
exclusive.
§Example
use google_cloud_developerconnect_v1::model::GoogleArtifactRegistry;
let x = ArtifactConfig::new().set_artifact_storage(Some(
google_cloud_developerconnect_v1::model::artifact_config::ArtifactStorage::GoogleArtifactRegistry(GoogleArtifactRegistry::default().into())));Sourcepub fn google_artifact_registry(&self) -> Option<&Box<GoogleArtifactRegistry>>
pub fn google_artifact_registry(&self) -> Option<&Box<GoogleArtifactRegistry>>
The value of artifact_storage
if it holds a GoogleArtifactRegistry, None if the field is not set or
holds a different branch.
Sourcepub fn set_google_artifact_registry<T: Into<Box<GoogleArtifactRegistry>>>(
self,
v: T,
) -> Self
pub fn set_google_artifact_registry<T: Into<Box<GoogleArtifactRegistry>>>( self, v: T, ) -> Self
Sets the value of artifact_storage
to hold a GoogleArtifactRegistry.
Note that all the setters affecting artifact_storage are
mutually exclusive.
§Example
use google_cloud_developerconnect_v1::model::GoogleArtifactRegistry;
let x = ArtifactConfig::new().set_google_artifact_registry(GoogleArtifactRegistry::default()/* use setters */);
assert!(x.google_artifact_registry().is_some());Sourcepub fn set_artifact_metadata_storage<T: Into<Option<ArtifactMetadataStorage>>>(
self,
v: T,
) -> Self
pub fn set_artifact_metadata_storage<T: Into<Option<ArtifactMetadataStorage>>>( self, v: T, ) -> Self
Sets the value of artifact_metadata_storage.
Note that all the setters affecting artifact_metadata_storage are mutually
exclusive.
§Example
use google_cloud_developerconnect_v1::model::GoogleArtifactAnalysis;
let x = ArtifactConfig::new().set_artifact_metadata_storage(Some(
google_cloud_developerconnect_v1::model::artifact_config::ArtifactMetadataStorage::GoogleArtifactAnalysis(GoogleArtifactAnalysis::default().into())));Sourcepub fn google_artifact_analysis(&self) -> Option<&Box<GoogleArtifactAnalysis>>
pub fn google_artifact_analysis(&self) -> Option<&Box<GoogleArtifactAnalysis>>
The value of artifact_metadata_storage
if it holds a GoogleArtifactAnalysis, None if the field is not set or
holds a different branch.
Sourcepub fn set_google_artifact_analysis<T: Into<Box<GoogleArtifactAnalysis>>>(
self,
v: T,
) -> Self
pub fn set_google_artifact_analysis<T: Into<Box<GoogleArtifactAnalysis>>>( self, v: T, ) -> Self
Sets the value of artifact_metadata_storage
to hold a GoogleArtifactAnalysis.
Note that all the setters affecting artifact_metadata_storage are
mutually exclusive.
§Example
use google_cloud_developerconnect_v1::model::GoogleArtifactAnalysis;
let x = ArtifactConfig::new().set_google_artifact_analysis(GoogleArtifactAnalysis::default()/* use setters */);
assert!(x.google_artifact_analysis().is_some());Trait Implementations§
Source§impl Clone for ArtifactConfig
impl Clone for ArtifactConfig
Source§fn clone(&self) -> ArtifactConfig
fn clone(&self) -> ArtifactConfig
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 ArtifactConfig
impl Debug for ArtifactConfig
Source§impl Default for ArtifactConfig
impl Default for ArtifactConfig
Source§fn default() -> ArtifactConfig
fn default() -> ArtifactConfig
Source§impl Message for ArtifactConfig
impl Message for ArtifactConfig
Source§impl PartialEq for ArtifactConfig
impl PartialEq for ArtifactConfig
impl StructuralPartialEq for ArtifactConfig
Auto Trait Implementations§
impl Freeze for ArtifactConfig
impl RefUnwindSafe for ArtifactConfig
impl Send for ArtifactConfig
impl Sync for ArtifactConfig
impl Unpin for ArtifactConfig
impl UnsafeUnpin for ArtifactConfig
impl UnwindSafe for ArtifactConfig
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