#[non_exhaustive]pub struct ManagedInstanceInstanceHealth {
pub detailed_health_state: Option<DetailedHealthState>,
pub health_check: Option<String>,
/* private fields */
}Available on crate features
instance-group-managers or region-instance-group-managers only.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.detailed_health_state: Option<DetailedHealthState>Output only. [Output Only] The current detailed instance health state.
health_check: Option<String>Output only. [Output Only] The URL for the health check that verifies whether the instance is healthy.
Implementations§
Source§impl ManagedInstanceInstanceHealth
impl ManagedInstanceInstanceHealth
pub fn new() -> Self
Sourcepub fn set_detailed_health_state<T>(self, v: T) -> Selfwhere
T: Into<DetailedHealthState>,
pub fn set_detailed_health_state<T>(self, v: T) -> Selfwhere
T: Into<DetailedHealthState>,
Sets the value of detailed_health_state.
§Example
ⓘ
use google_cloud_compute_v1::model::managed_instance_instance_health::DetailedHealthState;
let x0 = ManagedInstanceInstanceHealth::new().set_detailed_health_state(DetailedHealthState::Healthy);
let x1 = ManagedInstanceInstanceHealth::new().set_detailed_health_state(DetailedHealthState::Timeout);
let x2 = ManagedInstanceInstanceHealth::new().set_detailed_health_state(DetailedHealthState::Unhealthy);Sourcepub fn set_or_clear_detailed_health_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<DetailedHealthState>,
pub fn set_or_clear_detailed_health_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<DetailedHealthState>,
Sets or clears the value of detailed_health_state.
§Example
ⓘ
use google_cloud_compute_v1::model::managed_instance_instance_health::DetailedHealthState;
let x0 = ManagedInstanceInstanceHealth::new().set_or_clear_detailed_health_state(Some(DetailedHealthState::Healthy));
let x1 = ManagedInstanceInstanceHealth::new().set_or_clear_detailed_health_state(Some(DetailedHealthState::Timeout));
let x2 = ManagedInstanceInstanceHealth::new().set_or_clear_detailed_health_state(Some(DetailedHealthState::Unhealthy));
let x_none = ManagedInstanceInstanceHealth::new().set_or_clear_detailed_health_state(None::<DetailedHealthState>);Sourcepub fn set_health_check<T>(self, v: T) -> Self
pub fn set_health_check<T>(self, v: T) -> Self
Sets the value of health_check.
§Example
ⓘ
let x = ManagedInstanceInstanceHealth::new().set_health_check("example");Sourcepub fn set_or_clear_health_check<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_health_check<T>(self, v: Option<T>) -> Self
Sets or clears the value of health_check.
§Example
ⓘ
let x = ManagedInstanceInstanceHealth::new().set_or_clear_health_check(Some("example"));
let x = ManagedInstanceInstanceHealth::new().set_or_clear_health_check(None::<String>);Trait Implementations§
Source§impl Clone for ManagedInstanceInstanceHealth
impl Clone for ManagedInstanceInstanceHealth
Source§fn clone(&self) -> ManagedInstanceInstanceHealth
fn clone(&self) -> ManagedInstanceInstanceHealth
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ManagedInstanceInstanceHealth
impl Default for ManagedInstanceInstanceHealth
Source§fn default() -> ManagedInstanceInstanceHealth
fn default() -> ManagedInstanceInstanceHealth
Returns the “default value” for a type. Read more
Source§impl PartialEq for ManagedInstanceInstanceHealth
impl PartialEq for ManagedInstanceInstanceHealth
Source§fn eq(&self, other: &ManagedInstanceInstanceHealth) -> bool
fn eq(&self, other: &ManagedInstanceInstanceHealth) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ManagedInstanceInstanceHealth
Auto Trait Implementations§
impl Freeze for ManagedInstanceInstanceHealth
impl RefUnwindSafe for ManagedInstanceInstanceHealth
impl Send for ManagedInstanceInstanceHealth
impl Sync for ManagedInstanceInstanceHealth
impl Unpin for ManagedInstanceInstanceHealth
impl UnwindSafe for ManagedInstanceInstanceHealth
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