#[non_exhaustive]pub struct CloudRunMetadata {
pub service: String,
pub service_urls: Vec<String>,
pub revision: String,
pub job: String,
/* private fields */
}
Expand description
CloudRunMetadata contains information from a Cloud Run deployment.
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.service: String
Output only. The name of the Cloud Run Service that is associated with a
Rollout
. Format is
projects/{project}/locations/{location}/services/{service}
.
service_urls: Vec<String>
Output only. The Cloud Run Service urls that are associated with a
Rollout
.
revision: String
Output only. The Cloud Run Revision id associated with a Rollout
.
job: String
Output only. The name of the Cloud Run job that is associated with a
Rollout
. Format is
projects/{project}/locations/{location}/jobs/{job_name}
.
Implementations§
Source§impl CloudRunMetadata
impl CloudRunMetadata
pub fn new() -> Self
Sourcepub fn set_service<T: Into<String>>(self, v: T) -> Self
pub fn set_service<T: Into<String>>(self, v: T) -> Self
Sets the value of service.
Sourcepub fn set_service_urls<T, V>(self, v: T) -> Self
pub fn set_service_urls<T, V>(self, v: T) -> Self
Sets the value of service_urls.
Sourcepub fn set_revision<T: Into<String>>(self, v: T) -> Self
pub fn set_revision<T: Into<String>>(self, v: T) -> Self
Sets the value of revision.
Trait Implementations§
Source§impl Clone for CloudRunMetadata
impl Clone for CloudRunMetadata
Source§fn clone(&self) -> CloudRunMetadata
fn clone(&self) -> CloudRunMetadata
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 CloudRunMetadata
impl Debug for CloudRunMetadata
Source§impl Default for CloudRunMetadata
impl Default for CloudRunMetadata
Source§fn default() -> CloudRunMetadata
fn default() -> CloudRunMetadata
Returns the “default value” for a type. Read more
Source§impl Message for CloudRunMetadata
impl Message for CloudRunMetadata
Source§impl PartialEq for CloudRunMetadata
impl PartialEq for CloudRunMetadata
impl StructuralPartialEq for CloudRunMetadata
Auto Trait Implementations§
impl Freeze for CloudRunMetadata
impl RefUnwindSafe for CloudRunMetadata
impl Send for CloudRunMetadata
impl Sync for CloudRunMetadata
impl Unpin for CloudRunMetadata
impl UnwindSafe for CloudRunMetadata
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