#[non_exhaustive]pub struct GoogleArtifactRegistry {
pub project_id: String,
pub artifact_registry_package: String,
/* private fields */
}Expand description
Google Artifact Registry configurations.
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.project_id: StringRequired. The host project of Artifact Registry.
artifact_registry_package: StringRequired. Immutable. The name of the artifact registry package.
Implementations§
Source§impl GoogleArtifactRegistry
impl GoogleArtifactRegistry
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
§Example
ⓘ
let x = GoogleArtifactRegistry::new().set_project_id("example");Sourcepub fn set_artifact_registry_package<T: Into<String>>(self, v: T) -> Self
pub fn set_artifact_registry_package<T: Into<String>>(self, v: T) -> Self
Sets the value of artifact_registry_package.
§Example
ⓘ
let x = GoogleArtifactRegistry::new().set_artifact_registry_package("example");Trait Implementations§
Source§impl Clone for GoogleArtifactRegistry
impl Clone for GoogleArtifactRegistry
Source§fn clone(&self) -> GoogleArtifactRegistry
fn clone(&self) -> GoogleArtifactRegistry
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 GoogleArtifactRegistry
impl Debug for GoogleArtifactRegistry
Source§impl Default for GoogleArtifactRegistry
impl Default for GoogleArtifactRegistry
Source§fn default() -> GoogleArtifactRegistry
fn default() -> GoogleArtifactRegistry
Returns the “default value” for a type. Read more
Source§impl Message for GoogleArtifactRegistry
impl Message for GoogleArtifactRegistry
Source§impl PartialEq for GoogleArtifactRegistry
impl PartialEq for GoogleArtifactRegistry
impl StructuralPartialEq for GoogleArtifactRegistry
Auto Trait Implementations§
impl Freeze for GoogleArtifactRegistry
impl RefUnwindSafe for GoogleArtifactRegistry
impl Send for GoogleArtifactRegistry
impl Sync for GoogleArtifactRegistry
impl Unpin for GoogleArtifactRegistry
impl UnwindSafe for GoogleArtifactRegistry
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