#[non_exhaustive]pub struct CloudRun {
pub service_name: String,
pub location: String,
}Expand description
Cloud Run service. Learn more at https://cloud.google.com/run.
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_name: StringThe name of the Cloud Run service. Corresponds to the service_name
resource label in the cloud_run_revision monitored
resource.
location: StringThe location the service is run. Corresponds to the location
resource label in the cloud_run_revision monitored
resource.
Implementations§
Source§impl CloudRun
impl CloudRun
Sourcepub fn set_service_name<T: Into<String>>(self, v: T) -> Self
pub fn set_service_name<T: Into<String>>(self, v: T) -> Self
Sets the value of service_name.
Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sets the value of location.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CloudRun
impl<'de> Deserialize<'de> for CloudRun
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for CloudRun
Auto Trait Implementations§
impl Freeze for CloudRun
impl RefUnwindSafe for CloudRun
impl Send for CloudRun
impl Sync for CloudRun
impl Unpin for CloudRun
impl UnwindSafe for CloudRun
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