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