Struct google_api_proto::google::cloud::compute::v1::HealthStatus
source · pub struct HealthStatus {
pub annotations: BTreeMap<String, String>,
pub forwarding_rule: Option<String>,
pub forwarding_rule_ip: Option<String>,
pub health_state: Option<String>,
pub instance: Option<String>,
pub ip_address: Option<String>,
pub port: Option<i32>,
pub weight: Option<String>,
pub weight_error: Option<String>,
}
Expand description
Fields§
§annotations: BTreeMap<String, String>
Metadata defined as annotations for network endpoint.
forwarding_rule: Option<String>
URL of the forwarding rule associated with the health status of the instance.
forwarding_rule_ip: Option<String>
A forwarding rule IP address assigned to this instance.
health_state: Option<String>
Health state of the IPv4 address of the instance. Check the HealthState enum for the list of possible values.
instance: Option<String>
URL of the instance resource.
ip_address: Option<String>
For target pool based Network Load Balancing, it indicates the forwarding rule’s IP address assigned to this instance. For other types of load balancing, the field indicates VM internal ip.
port: Option<i32>
The named port of the instance group, not necessarily the port that is health-checked.
weight: Option<String>
§weight_error: Option<String>
Check the WeightError enum for the list of possible values.
Implementations§
source§impl HealthStatus
impl HealthStatus
sourcepub fn instance(&self) -> &str
pub fn instance(&self) -> &str
Returns the value of instance
, or the default value if instance
is unset.
sourcepub fn forwarding_rule_ip(&self) -> &str
pub fn forwarding_rule_ip(&self) -> &str
Returns the value of forwarding_rule_ip
, or the default value if forwarding_rule_ip
is unset.
sourcepub fn forwarding_rule(&self) -> &str
pub fn forwarding_rule(&self) -> &str
Returns the value of forwarding_rule
, or the default value if forwarding_rule
is unset.
sourcepub fn weight(&self) -> &str
pub fn weight(&self) -> &str
Returns the value of weight
, or the default value if weight
is unset.
sourcepub fn health_state(&self) -> &str
pub fn health_state(&self) -> &str
Returns the value of health_state
, or the default value if health_state
is unset.
sourcepub fn ip_address(&self) -> &str
pub fn ip_address(&self) -> &str
Returns the value of ip_address
, or the default value if ip_address
is unset.
sourcepub fn weight_error(&self) -> &str
pub fn weight_error(&self) -> &str
Returns the value of weight_error
, or the default value if weight_error
is unset.
Trait Implementations§
source§impl Clone for HealthStatus
impl Clone for HealthStatus
source§fn clone(&self) -> HealthStatus
fn clone(&self) -> HealthStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HealthStatus
impl Debug for HealthStatus
source§impl Default for HealthStatus
impl Default for HealthStatus
source§impl Message for HealthStatus
impl Message for HealthStatus
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for HealthStatus
impl PartialEq for HealthStatus
source§fn eq(&self, other: &HealthStatus) -> bool
fn eq(&self, other: &HealthStatus) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HealthStatus
Auto Trait Implementations§
impl Freeze for HealthStatus
impl RefUnwindSafe for HealthStatus
impl Send for HealthStatus
impl Sync for HealthStatus
impl Unpin for HealthStatus
impl UnwindSafe for HealthStatus
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request