#[non_exhaustive]pub struct BackendServiceGroupHealth {
pub annotations: HashMap<String, String>,
pub health_status: Vec<HealthStatus>,
pub kind: Option<String>,
/* private fields */
}Available on crate features
backend-services or region-backend-services 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.annotations: HashMap<String, String>Metadata defined as annotations on the network endpoint group.
health_status: Vec<HealthStatus>Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.
kind: Option<String>Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the health of backend services.
Implementations§
Source§impl BackendServiceGroupHealth
impl BackendServiceGroupHealth
pub fn new() -> Self
Sourcepub fn set_annotations<T, K, V>(self, v: T) -> Self
pub fn set_annotations<T, K, V>(self, v: T) -> Self
Sets the value of annotations.
§Example
ⓘ
let x = BackendServiceGroupHealth::new().set_annotations([
("key0", "abc"),
("key1", "xyz"),
]);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 = BackendServiceGroupHealth::new()
.set_health_status([
HealthStatus::default()/* use setters */,
HealthStatus::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for BackendServiceGroupHealth
impl Clone for BackendServiceGroupHealth
Source§fn clone(&self) -> BackendServiceGroupHealth
fn clone(&self) -> BackendServiceGroupHealth
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 BackendServiceGroupHealth
impl Debug for BackendServiceGroupHealth
Source§impl Default for BackendServiceGroupHealth
impl Default for BackendServiceGroupHealth
Source§fn default() -> BackendServiceGroupHealth
fn default() -> BackendServiceGroupHealth
Returns the “default value” for a type. Read more
Source§impl Message for BackendServiceGroupHealth
impl Message for BackendServiceGroupHealth
impl StructuralPartialEq for BackendServiceGroupHealth
Auto Trait Implementations§
impl Freeze for BackendServiceGroupHealth
impl RefUnwindSafe for BackendServiceGroupHealth
impl Send for BackendServiceGroupHealth
impl Sync for BackendServiceGroupHealth
impl Unpin for BackendServiceGroupHealth
impl UnwindSafe for BackendServiceGroupHealth
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