#[non_exhaustive]pub struct BuiltImage {
pub name: String,
pub digest: String,
pub push_timing: Option<TimeSpan>,
pub artifact_registry_package: String,
/* private fields */
}Expand description
An image built by the pipeline.
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.name: StringName used to push the container image to Google Container Registry, as
presented to docker push.
digest: StringDocker Registry 2.0 digest.
push_timing: Option<TimeSpan>Output only. Stores timing information for pushing the specified image.
artifact_registry_package: StringOutput only. Path to the artifact in Artifact Registry.
Implementations§
Source§impl BuiltImage
impl BuiltImage
Sourcepub fn set_digest<T: Into<String>>(self, v: T) -> Self
pub fn set_digest<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_push_timing<T>(self, v: T) -> Self
pub fn set_push_timing<T>(self, v: T) -> Self
Sets the value of push_timing.
§Example
ⓘ
use google_cloud_build_v1::model::TimeSpan;
let x = BuiltImage::new().set_push_timing(TimeSpan::default()/* use setters */);Sourcepub fn set_or_clear_push_timing<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_push_timing<T>(self, v: Option<T>) -> Self
Sets or clears the value of push_timing.
§Example
ⓘ
use google_cloud_build_v1::model::TimeSpan;
let x = BuiltImage::new().set_or_clear_push_timing(Some(TimeSpan::default()/* use setters */));
let x = BuiltImage::new().set_or_clear_push_timing(None::<TimeSpan>);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 = BuiltImage::new().set_artifact_registry_package("example");Trait Implementations§
Source§impl Clone for BuiltImage
impl Clone for BuiltImage
Source§fn clone(&self) -> BuiltImage
fn clone(&self) -> BuiltImage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BuiltImage
impl Debug for BuiltImage
Source§impl Default for BuiltImage
impl Default for BuiltImage
Source§fn default() -> BuiltImage
fn default() -> BuiltImage
Returns the “default value” for a type. Read more
Source§impl PartialEq for BuiltImage
impl PartialEq for BuiltImage
impl StructuralPartialEq for BuiltImage
Auto Trait Implementations§
impl Freeze for BuiltImage
impl RefUnwindSafe for BuiltImage
impl Send for BuiltImage
impl Sync for BuiltImage
impl Unpin for BuiltImage
impl UnsafeUnpin for BuiltImage
impl UnwindSafe for BuiltImage
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
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>
Wrap the input message
T in a tonic::Request