#[non_exhaustive]pub struct BackendServiceNetworkPassThroughLbTrafficPolicy {
pub zonal_affinity: Option<BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity>,
/* 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.zonal_affinity: Option<BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity>When configured, new connections are load balanced across healthy backend endpoints in the local zone.
Implementations§
Source§impl BackendServiceNetworkPassThroughLbTrafficPolicy
impl BackendServiceNetworkPassThroughLbTrafficPolicy
pub fn new() -> Self
Sourcepub fn set_zonal_affinity<T>(self, v: T) -> Self
pub fn set_zonal_affinity<T>(self, v: T) -> Self
Sets the value of zonal_affinity.
§Example
ⓘ
use google_cloud_compute_v1::model::BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity;
let x = BackendServiceNetworkPassThroughLbTrafficPolicy::new().set_zonal_affinity(BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity::default()/* use setters */);Sourcepub fn set_or_clear_zonal_affinity<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_zonal_affinity<T>(self, v: Option<T>) -> Self
Sets or clears the value of zonal_affinity.
§Example
ⓘ
use google_cloud_compute_v1::model::BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity;
let x = BackendServiceNetworkPassThroughLbTrafficPolicy::new().set_or_clear_zonal_affinity(Some(BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity::default()/* use setters */));
let x = BackendServiceNetworkPassThroughLbTrafficPolicy::new().set_or_clear_zonal_affinity(None::<BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity>);Trait Implementations§
Source§impl Clone for BackendServiceNetworkPassThroughLbTrafficPolicy
impl Clone for BackendServiceNetworkPassThroughLbTrafficPolicy
Source§fn clone(&self) -> BackendServiceNetworkPassThroughLbTrafficPolicy
fn clone(&self) -> BackendServiceNetworkPassThroughLbTrafficPolicy
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 BackendServiceNetworkPassThroughLbTrafficPolicy
impl Default for BackendServiceNetworkPassThroughLbTrafficPolicy
Source§fn default() -> BackendServiceNetworkPassThroughLbTrafficPolicy
fn default() -> BackendServiceNetworkPassThroughLbTrafficPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for BackendServiceNetworkPassThroughLbTrafficPolicy
impl PartialEq for BackendServiceNetworkPassThroughLbTrafficPolicy
Source§fn eq(&self, other: &BackendServiceNetworkPassThroughLbTrafficPolicy) -> bool
fn eq(&self, other: &BackendServiceNetworkPassThroughLbTrafficPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackendServiceNetworkPassThroughLbTrafficPolicy
Auto Trait Implementations§
impl Freeze for BackendServiceNetworkPassThroughLbTrafficPolicy
impl RefUnwindSafe for BackendServiceNetworkPassThroughLbTrafficPolicy
impl Send for BackendServiceNetworkPassThroughLbTrafficPolicy
impl Sync for BackendServiceNetworkPassThroughLbTrafficPolicy
impl Unpin for BackendServiceNetworkPassThroughLbTrafficPolicy
impl UnwindSafe for BackendServiceNetworkPassThroughLbTrafficPolicy
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