#[non_exhaustive]pub struct HealthSourceHealth {
pub health_state: Option<HealthState>,
pub kind: Option<String>,
pub sources: Vec<HealthSourcesGetHealthResponseSourceInfo>,
/* private fields */
}Available on crate feature
region-health-sources only.Expand description
Response message for RegionHealthSources.GetHealth
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.health_state: Option<HealthState>Health state of the HealthSource.
kind: Option<String>Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
sources: Vec<HealthSourcesGetHealthResponseSourceInfo>Health state details of the sources.
Implementations§
Source§impl HealthSourceHealth
impl HealthSourceHealth
Sourcepub fn set_health_state<T>(self, v: T) -> Selfwhere
T: Into<HealthState>,
pub fn set_health_state<T>(self, v: T) -> Selfwhere
T: Into<HealthState>,
Sets the value of health_state.
§Example
ⓘ
use google_cloud_compute_v1::model::health_source_health::HealthState;
let x0 = HealthSourceHealth::new().set_health_state(HealthState::Unhealthy);
let x1 = HealthSourceHealth::new().set_health_state(HealthState::Unknown);Sourcepub fn set_or_clear_health_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<HealthState>,
pub fn set_or_clear_health_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<HealthState>,
Sets or clears the value of health_state.
§Example
ⓘ
use google_cloud_compute_v1::model::health_source_health::HealthState;
let x0 = HealthSourceHealth::new().set_or_clear_health_state(Some(HealthState::Unhealthy));
let x1 = HealthSourceHealth::new().set_or_clear_health_state(Some(HealthState::Unknown));
let x_none = HealthSourceHealth::new().set_or_clear_health_state(None::<HealthState>);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_sources<T, V>(self, v: T) -> Self
pub fn set_sources<T, V>(self, v: T) -> Self
Sets the value of sources.
§Example
ⓘ
use google_cloud_compute_v1::model::HealthSourcesGetHealthResponseSourceInfo;
let x = HealthSourceHealth::new()
.set_sources([
HealthSourcesGetHealthResponseSourceInfo::default()/* use setters */,
HealthSourcesGetHealthResponseSourceInfo::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for HealthSourceHealth
impl Clone for HealthSourceHealth
Source§fn clone(&self) -> HealthSourceHealth
fn clone(&self) -> HealthSourceHealth
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 HealthSourceHealth
impl Debug for HealthSourceHealth
Source§impl Default for HealthSourceHealth
impl Default for HealthSourceHealth
Source§fn default() -> HealthSourceHealth
fn default() -> HealthSourceHealth
Returns the “default value” for a type. Read more
Source§impl Message for HealthSourceHealth
impl Message for HealthSourceHealth
Source§impl PartialEq for HealthSourceHealth
impl PartialEq for HealthSourceHealth
Source§fn eq(&self, other: &HealthSourceHealth) -> bool
fn eq(&self, other: &HealthSourceHealth) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HealthSourceHealth
Auto Trait Implementations§
impl Freeze for HealthSourceHealth
impl RefUnwindSafe for HealthSourceHealth
impl Send for HealthSourceHealth
impl Sync for HealthSourceHealth
impl Unpin for HealthSourceHealth
impl UnsafeUnpin for HealthSourceHealth
impl UnwindSafe for HealthSourceHealth
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