#[non_exhaustive]pub struct RiskDetails {
pub duration: Option<Duration>,
pub global_dns_insight: Option<RiskDetailsGlobalDnsInsight>,
pub last_update_timestamp: Option<Timestamp>,
pub severity: Option<Severity>,
pub type: Option<Type>,
/* private fields */
}Available on crate feature
reliability-risks only.Expand description
Detailed insights and metrics about a detected reliability risk.
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.duration: Option<Duration>The duration of the risk since it was detected.
global_dns_insight: Option<RiskDetailsGlobalDnsInsight>Insight details for global DNS risk.
last_update_timestamp: Option<Timestamp>The last time the risk was updated.
severity: Option<Severity>The severity of the risk.
type: Option<Type>The type of risk.
Implementations§
Source§impl RiskDetails
impl RiskDetails
Sourcepub fn set_duration<T>(self, v: T) -> Self
pub fn set_duration<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_duration<T>(self, v: Option<T>) -> Self
Sourcepub fn set_global_dns_insight<T>(self, v: T) -> Selfwhere
T: Into<RiskDetailsGlobalDnsInsight>,
pub fn set_global_dns_insight<T>(self, v: T) -> Selfwhere
T: Into<RiskDetailsGlobalDnsInsight>,
Sets the value of global_dns_insight.
§Example
ⓘ
use google_cloud_compute_v1::model::RiskDetailsGlobalDnsInsight;
let x = RiskDetails::new().set_global_dns_insight(RiskDetailsGlobalDnsInsight::default()/* use setters */);Sourcepub fn set_or_clear_global_dns_insight<T>(self, v: Option<T>) -> Selfwhere
T: Into<RiskDetailsGlobalDnsInsight>,
pub fn set_or_clear_global_dns_insight<T>(self, v: Option<T>) -> Selfwhere
T: Into<RiskDetailsGlobalDnsInsight>,
Sets or clears the value of global_dns_insight.
§Example
ⓘ
use google_cloud_compute_v1::model::RiskDetailsGlobalDnsInsight;
let x = RiskDetails::new().set_or_clear_global_dns_insight(Some(RiskDetailsGlobalDnsInsight::default()/* use setters */));
let x = RiskDetails::new().set_or_clear_global_dns_insight(None::<RiskDetailsGlobalDnsInsight>);Sourcepub fn set_last_update_timestamp<T>(self, v: T) -> Self
pub fn set_last_update_timestamp<T>(self, v: T) -> Self
Sets the value of last_update_timestamp.
§Example
ⓘ
use wkt::Timestamp;
let x = RiskDetails::new().set_last_update_timestamp(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_last_update_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_update_timestamp<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_update_timestamp.
§Example
ⓘ
use wkt::Timestamp;
let x = RiskDetails::new().set_or_clear_last_update_timestamp(Some(Timestamp::default()/* use setters */));
let x = RiskDetails::new().set_or_clear_last_update_timestamp(None::<Timestamp>);Sourcepub fn set_severity<T>(self, v: T) -> Self
pub fn set_severity<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_severity<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_severity<T>(self, v: Option<T>) -> Self
Sets or clears the value of severity.
§Example
ⓘ
use google_cloud_compute_v1::model::risk_details::Severity;
let x0 = RiskDetails::new().set_or_clear_severity(Some(Severity::High));
let x1 = RiskDetails::new().set_or_clear_severity(Some(Severity::Low));
let x2 = RiskDetails::new().set_or_clear_severity(Some(Severity::Medium));
let x_none = RiskDetails::new().set_or_clear_severity(None::<Severity>);Sourcepub fn set_or_clear_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_type<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for RiskDetails
impl Clone for RiskDetails
Source§fn clone(&self) -> RiskDetails
fn clone(&self) -> RiskDetails
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 RiskDetails
impl Debug for RiskDetails
Source§impl Default for RiskDetails
impl Default for RiskDetails
Source§fn default() -> RiskDetails
fn default() -> RiskDetails
Returns the “default value” for a type. Read more
Source§impl Message for RiskDetails
impl Message for RiskDetails
Source§impl PartialEq for RiskDetails
impl PartialEq for RiskDetails
impl StructuralPartialEq for RiskDetails
Auto Trait Implementations§
impl Freeze for RiskDetails
impl RefUnwindSafe for RiskDetails
impl Send for RiskDetails
impl Sync for RiskDetails
impl Unpin for RiskDetails
impl UnsafeUnpin for RiskDetails
impl UnwindSafe for RiskDetails
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