#[non_exhaustive]pub struct CreateTunnelDestGroupRequest {
pub parent: String,
pub tunnel_dest_group: Option<TunnelDestGroup>,
pub tunnel_dest_group_id: String,
/* private fields */
}Expand description
The request to CreateTunnelDestGroup.
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.parent: StringRequired. Google Cloud Project ID and location.
In the following format:
projects/{project_number/id}/iap_tunnel/locations/{location}.
tunnel_dest_group: Option<TunnelDestGroup>Required. The TunnelDestGroup to create.
tunnel_dest_group_id: StringRequired. The ID to use for the TunnelDestGroup, which becomes the final component of the resource name.
This value must be 4-63 characters, and valid characters
are [a-z]-.
Implementations§
Source§impl CreateTunnelDestGroupRequest
impl CreateTunnelDestGroupRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_tunnel_dest_group<T>(self, v: T) -> Selfwhere
T: Into<TunnelDestGroup>,
pub fn set_tunnel_dest_group<T>(self, v: T) -> Selfwhere
T: Into<TunnelDestGroup>,
Sets the value of tunnel_dest_group.
Sourcepub fn set_or_clear_tunnel_dest_group<T>(self, v: Option<T>) -> Selfwhere
T: Into<TunnelDestGroup>,
pub fn set_or_clear_tunnel_dest_group<T>(self, v: Option<T>) -> Selfwhere
T: Into<TunnelDestGroup>,
Sets or clears the value of tunnel_dest_group.
Sourcepub fn set_tunnel_dest_group_id<T: Into<String>>(self, v: T) -> Self
pub fn set_tunnel_dest_group_id<T: Into<String>>(self, v: T) -> Self
Sets the value of tunnel_dest_group_id.
Trait Implementations§
Source§impl Clone for CreateTunnelDestGroupRequest
impl Clone for CreateTunnelDestGroupRequest
Source§fn clone(&self) -> CreateTunnelDestGroupRequest
fn clone(&self) -> CreateTunnelDestGroupRequest
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 Debug for CreateTunnelDestGroupRequest
impl Debug for CreateTunnelDestGroupRequest
Source§impl Default for CreateTunnelDestGroupRequest
impl Default for CreateTunnelDestGroupRequest
Source§fn default() -> CreateTunnelDestGroupRequest
fn default() -> CreateTunnelDestGroupRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateTunnelDestGroupRequest
impl PartialEq for CreateTunnelDestGroupRequest
Source§fn eq(&self, other: &CreateTunnelDestGroupRequest) -> bool
fn eq(&self, other: &CreateTunnelDestGroupRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateTunnelDestGroupRequest
Auto Trait Implementations§
impl Freeze for CreateTunnelDestGroupRequest
impl RefUnwindSafe for CreateTunnelDestGroupRequest
impl Send for CreateTunnelDestGroupRequest
impl Sync for CreateTunnelDestGroupRequest
impl Unpin for CreateTunnelDestGroupRequest
impl UnwindSafe for CreateTunnelDestGroupRequest
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