#[non_exhaustive]pub struct SubnetworksSetPrivateIpGoogleAccessRequest {
pub private_ip_google_access: Option<bool>,
/* private fields */
}Available on crate feature
subnetworks 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.private_ip_google_access: Option<bool>Implementations§
Source§impl SubnetworksSetPrivateIpGoogleAccessRequest
impl SubnetworksSetPrivateIpGoogleAccessRequest
pub fn new() -> Self
Sourcepub fn set_private_ip_google_access<T>(self, v: T) -> Self
pub fn set_private_ip_google_access<T>(self, v: T) -> Self
Sets the value of private_ip_google_access.
§Example
ⓘ
let x = SubnetworksSetPrivateIpGoogleAccessRequest::new().set_private_ip_google_access(true);Sourcepub fn set_or_clear_private_ip_google_access<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_private_ip_google_access<T>(self, v: Option<T>) -> Self
Sets or clears the value of private_ip_google_access.
§Example
ⓘ
let x = SubnetworksSetPrivateIpGoogleAccessRequest::new().set_or_clear_private_ip_google_access(Some(false));
let x = SubnetworksSetPrivateIpGoogleAccessRequest::new().set_or_clear_private_ip_google_access(None::<bool>);Trait Implementations§
Source§impl Clone for SubnetworksSetPrivateIpGoogleAccessRequest
impl Clone for SubnetworksSetPrivateIpGoogleAccessRequest
Source§fn clone(&self) -> SubnetworksSetPrivateIpGoogleAccessRequest
fn clone(&self) -> SubnetworksSetPrivateIpGoogleAccessRequest
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 SubnetworksSetPrivateIpGoogleAccessRequest
impl Default for SubnetworksSetPrivateIpGoogleAccessRequest
Source§fn default() -> SubnetworksSetPrivateIpGoogleAccessRequest
fn default() -> SubnetworksSetPrivateIpGoogleAccessRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for SubnetworksSetPrivateIpGoogleAccessRequest
impl PartialEq for SubnetworksSetPrivateIpGoogleAccessRequest
Source§fn eq(&self, other: &SubnetworksSetPrivateIpGoogleAccessRequest) -> bool
fn eq(&self, other: &SubnetworksSetPrivateIpGoogleAccessRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubnetworksSetPrivateIpGoogleAccessRequest
Auto Trait Implementations§
impl Freeze for SubnetworksSetPrivateIpGoogleAccessRequest
impl RefUnwindSafe for SubnetworksSetPrivateIpGoogleAccessRequest
impl Send for SubnetworksSetPrivateIpGoogleAccessRequest
impl Sync for SubnetworksSetPrivateIpGoogleAccessRequest
impl Unpin for SubnetworksSetPrivateIpGoogleAccessRequest
impl UnwindSafe for SubnetworksSetPrivateIpGoogleAccessRequest
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