#[non_exhaustive]pub struct BackendServiceHAPolicyLeaderNetworkEndpoint {
pub instance: 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.instance: Option<String>The name of the VM instance of the leader network endpoint. The instance must already be attached to the NEG specified in the haPolicy.leader.backendGroup.
The name must be 1-63 characters long, and comply with RFC1035. Authorization requires the following IAM permission on the specified resource instance: compute.instances.use
Implementations§
Source§impl BackendServiceHAPolicyLeaderNetworkEndpoint
impl BackendServiceHAPolicyLeaderNetworkEndpoint
pub fn new() -> Self
Sourcepub fn set_instance<T>(self, v: T) -> Self
pub fn set_instance<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_instance<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_instance<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for BackendServiceHAPolicyLeaderNetworkEndpoint
impl Clone for BackendServiceHAPolicyLeaderNetworkEndpoint
Source§fn clone(&self) -> BackendServiceHAPolicyLeaderNetworkEndpoint
fn clone(&self) -> BackendServiceHAPolicyLeaderNetworkEndpoint
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 BackendServiceHAPolicyLeaderNetworkEndpoint
impl Default for BackendServiceHAPolicyLeaderNetworkEndpoint
Source§fn default() -> BackendServiceHAPolicyLeaderNetworkEndpoint
fn default() -> BackendServiceHAPolicyLeaderNetworkEndpoint
Returns the “default value” for a type. Read more
Source§impl PartialEq for BackendServiceHAPolicyLeaderNetworkEndpoint
impl PartialEq for BackendServiceHAPolicyLeaderNetworkEndpoint
Source§fn eq(&self, other: &BackendServiceHAPolicyLeaderNetworkEndpoint) -> bool
fn eq(&self, other: &BackendServiceHAPolicyLeaderNetworkEndpoint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackendServiceHAPolicyLeaderNetworkEndpoint
Auto Trait Implementations§
impl Freeze for BackendServiceHAPolicyLeaderNetworkEndpoint
impl RefUnwindSafe for BackendServiceHAPolicyLeaderNetworkEndpoint
impl Send for BackendServiceHAPolicyLeaderNetworkEndpoint
impl Sync for BackendServiceHAPolicyLeaderNetworkEndpoint
impl Unpin for BackendServiceHAPolicyLeaderNetworkEndpoint
impl UnwindSafe for BackendServiceHAPolicyLeaderNetworkEndpoint
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