#[non_exhaustive]pub struct HealthSourcesGetHealthResponseSourceInfo {
pub backends: Vec<HealthSourcesGetHealthResponseSourceInfoBackendInfo>,
pub forwarding_rule: Option<String>,
pub source: Option<String>,
/* private fields */
}Available on crate feature
region-health-sources 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.backends: Vec<HealthSourcesGetHealthResponseSourceInfoBackendInfo>Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.
forwarding_rule: Option<String>Fully qualified URL of the forwarding rule associated with the source resource if it is a L4ILB backend service.
source: Option<String>Fully qualified URL of the associated source resource. This is always a backend service URL.
Implementations§
Source§impl HealthSourcesGetHealthResponseSourceInfo
impl HealthSourcesGetHealthResponseSourceInfo
Sourcepub fn set_backends<T, V>(self, v: T) -> Self
pub fn set_backends<T, V>(self, v: T) -> Self
Sets the value of backends.
§Example
ⓘ
use google_cloud_compute_v1::model::HealthSourcesGetHealthResponseSourceInfoBackendInfo;
let x = HealthSourcesGetHealthResponseSourceInfo::new()
.set_backends([
HealthSourcesGetHealthResponseSourceInfoBackendInfo::default()/* use setters */,
HealthSourcesGetHealthResponseSourceInfoBackendInfo::default()/* use (different) setters */,
]);Sourcepub fn set_forwarding_rule<T>(self, v: T) -> Self
pub fn set_forwarding_rule<T>(self, v: T) -> Self
Sets the value of forwarding_rule.
§Example
ⓘ
let x = HealthSourcesGetHealthResponseSourceInfo::new().set_forwarding_rule("example");Sourcepub fn set_or_clear_forwarding_rule<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_forwarding_rule<T>(self, v: Option<T>) -> Self
Sets or clears the value of forwarding_rule.
§Example
ⓘ
let x = HealthSourcesGetHealthResponseSourceInfo::new().set_or_clear_forwarding_rule(Some("example"));
let x = HealthSourcesGetHealthResponseSourceInfo::new().set_or_clear_forwarding_rule(None::<String>);Sourcepub fn set_source<T>(self, v: T) -> Self
pub fn set_source<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_source<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_source<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for HealthSourcesGetHealthResponseSourceInfo
impl Clone for HealthSourcesGetHealthResponseSourceInfo
Source§fn clone(&self) -> HealthSourcesGetHealthResponseSourceInfo
fn clone(&self) -> HealthSourcesGetHealthResponseSourceInfo
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 Default for HealthSourcesGetHealthResponseSourceInfo
impl Default for HealthSourcesGetHealthResponseSourceInfo
Source§fn default() -> HealthSourcesGetHealthResponseSourceInfo
fn default() -> HealthSourcesGetHealthResponseSourceInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for HealthSourcesGetHealthResponseSourceInfo
impl PartialEq for HealthSourcesGetHealthResponseSourceInfo
Source§fn eq(&self, other: &HealthSourcesGetHealthResponseSourceInfo) -> bool
fn eq(&self, other: &HealthSourcesGetHealthResponseSourceInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HealthSourcesGetHealthResponseSourceInfo
Auto Trait Implementations§
impl Freeze for HealthSourcesGetHealthResponseSourceInfo
impl RefUnwindSafe for HealthSourcesGetHealthResponseSourceInfo
impl Send for HealthSourcesGetHealthResponseSourceInfo
impl Sync for HealthSourcesGetHealthResponseSourceInfo
impl Unpin for HealthSourcesGetHealthResponseSourceInfo
impl UnsafeUnpin for HealthSourcesGetHealthResponseSourceInfo
impl UnwindSafe for HealthSourcesGetHealthResponseSourceInfo
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