#[non_exhaustive]pub struct ReliabilityRisk {
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub details: Option<RiskDetails>,
pub id: Option<u64>,
pub kind: Option<String>,
pub name: Option<String>,
pub recommendation: Option<RiskRecommendation>,
pub self_link: Option<String>,
pub self_link_with_id: Option<String>,
/* private fields */
}reliability-risks only.Expand description
Represents a ReliabilityRisk resource.
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.creation_timestamp: Option<String>Output only. [Output Only] Creation timestamp in RFC3339 text format.
description: Option<String>An optional textual description of the resource; provided when the resource is created.
details: Option<RiskDetails>[Output Only] Details of the reliability risk resource
id: Option<u64>[Output Only] The unique identifier for the resource. This identifier is defined by the server.
kind: Option<String>Output only. [Output Only] Type of resource. Always compute#reliabilityRisk for reliability risks.
name: Option<String>Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
recommendation: Option<RiskRecommendation>The recommendation to mitigate the risk.
self_link: Option<String>Output only. [Output Only] Server-defined URL for the resource.
self_link_with_id: Option<String>Output only. [Output Only] Server-defined URL for this resource with the resource id.
Implementations§
Source§impl ReliabilityRisk
impl ReliabilityRisk
Sourcepub fn set_creation_timestamp<T>(self, v: T) -> Self
pub fn set_creation_timestamp<T>(self, v: T) -> Self
Sets the value of creation_timestamp.
§Example
let x = ReliabilityRisk::new().set_creation_timestamp("example");Sourcepub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
Sets or clears the value of creation_timestamp.
§Example
let x = ReliabilityRisk::new().set_or_clear_creation_timestamp(Some("example"));
let x = ReliabilityRisk::new().set_or_clear_creation_timestamp(None::<String>);Sourcepub fn set_description<T>(self, v: T) -> Self
pub fn set_description<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
Sets or clears the value of description.
§Example
let x = ReliabilityRisk::new().set_or_clear_description(Some("example"));
let x = ReliabilityRisk::new().set_or_clear_description(None::<String>);Sourcepub fn set_details<T>(self, v: T) -> Selfwhere
T: Into<RiskDetails>,
pub fn set_details<T>(self, v: T) -> Selfwhere
T: Into<RiskDetails>,
Sourcepub fn set_or_clear_details<T>(self, v: Option<T>) -> Selfwhere
T: Into<RiskDetails>,
pub fn set_or_clear_details<T>(self, v: Option<T>) -> Selfwhere
T: Into<RiskDetails>,
Sourcepub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_recommendation<T>(self, v: T) -> Selfwhere
T: Into<RiskRecommendation>,
pub fn set_recommendation<T>(self, v: T) -> Selfwhere
T: Into<RiskRecommendation>,
Sets the value of recommendation.
§Example
use google_cloud_compute_v1::model::RiskRecommendation;
let x = ReliabilityRisk::new().set_recommendation(RiskRecommendation::default()/* use setters */);Sourcepub fn set_or_clear_recommendation<T>(self, v: Option<T>) -> Selfwhere
T: Into<RiskRecommendation>,
pub fn set_or_clear_recommendation<T>(self, v: Option<T>) -> Selfwhere
T: Into<RiskRecommendation>,
Sets or clears the value of recommendation.
§Example
use google_cloud_compute_v1::model::RiskRecommendation;
let x = ReliabilityRisk::new().set_or_clear_recommendation(Some(RiskRecommendation::default()/* use setters */));
let x = ReliabilityRisk::new().set_or_clear_recommendation(None::<RiskRecommendation>);Sourcepub fn set_self_link<T>(self, v: T) -> Self
pub fn set_self_link<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
Sourcepub fn set_self_link_with_id<T>(self, v: T) -> Self
pub fn set_self_link_with_id<T>(self, v: T) -> Self
Sets the value of self_link_with_id.
§Example
let x = ReliabilityRisk::new().set_self_link_with_id("example");Sourcepub fn set_or_clear_self_link_with_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link_with_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of self_link_with_id.
§Example
let x = ReliabilityRisk::new().set_or_clear_self_link_with_id(Some("example"));
let x = ReliabilityRisk::new().set_or_clear_self_link_with_id(None::<String>);Trait Implementations§
Source§impl Clone for ReliabilityRisk
impl Clone for ReliabilityRisk
Source§fn clone(&self) -> ReliabilityRisk
fn clone(&self) -> ReliabilityRisk
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 ReliabilityRisk
impl Debug for ReliabilityRisk
Source§impl Default for ReliabilityRisk
impl Default for ReliabilityRisk
Source§fn default() -> ReliabilityRisk
fn default() -> ReliabilityRisk
Source§impl Message for ReliabilityRisk
impl Message for ReliabilityRisk
Source§impl PartialEq for ReliabilityRisk
impl PartialEq for ReliabilityRisk
impl StructuralPartialEq for ReliabilityRisk
Auto Trait Implementations§
impl Freeze for ReliabilityRisk
impl RefUnwindSafe for ReliabilityRisk
impl Send for ReliabilityRisk
impl Sync for ReliabilityRisk
impl Unpin for ReliabilityRisk
impl UnsafeUnpin for ReliabilityRisk
impl UnwindSafe for ReliabilityRisk
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