#[non_exhaustive]pub struct TargetPoolInstanceHealth {
pub health_status: Vec<HealthStatus>,
pub kind: Option<String>,
/* private fields */
}Available on crate feature
target-pools 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.health_status: Vec<HealthStatus>§kind: Option<String>Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when checking the health of an instance.
Implementations§
Source§impl TargetPoolInstanceHealth
impl TargetPoolInstanceHealth
pub fn new() -> Self
Sourcepub fn set_health_status<T, V>(self, v: T) -> Self
pub fn set_health_status<T, V>(self, v: T) -> Self
Sets the value of health_status.
§Example
ⓘ
use google_cloud_compute_v1::model::HealthStatus;
let x = TargetPoolInstanceHealth::new()
.set_health_status([
HealthStatus::default()/* use setters */,
HealthStatus::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for TargetPoolInstanceHealth
impl Clone for TargetPoolInstanceHealth
Source§fn clone(&self) -> TargetPoolInstanceHealth
fn clone(&self) -> TargetPoolInstanceHealth
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 Debug for TargetPoolInstanceHealth
impl Debug for TargetPoolInstanceHealth
Source§impl Default for TargetPoolInstanceHealth
impl Default for TargetPoolInstanceHealth
Source§fn default() -> TargetPoolInstanceHealth
fn default() -> TargetPoolInstanceHealth
Returns the “default value” for a type. Read more
Source§impl Message for TargetPoolInstanceHealth
impl Message for TargetPoolInstanceHealth
Source§impl PartialEq for TargetPoolInstanceHealth
impl PartialEq for TargetPoolInstanceHealth
impl StructuralPartialEq for TargetPoolInstanceHealth
Auto Trait Implementations§
impl Freeze for TargetPoolInstanceHealth
impl RefUnwindSafe for TargetPoolInstanceHealth
impl Send for TargetPoolInstanceHealth
impl Sync for TargetPoolInstanceHealth
impl Unpin for TargetPoolInstanceHealth
impl UnwindSafe for TargetPoolInstanceHealth
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