#[non_exhaustive]pub struct GetStatusRequest {
pub project: String,
pub region: String,
pub vpn_gateway: String,
/* private fields */
}Available on crate feature
vpn-gateways only.Expand description
Synthetic request message for the getStatus() method.
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.project: StringProject ID for this request.
region: StringName of the region for this request.
vpn_gateway: StringName of the VPN gateway to return.
Implementations§
Source§impl GetStatusRequest
impl GetStatusRequest
pub fn new() -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_region<T: Into<String>>(self, v: T) -> Self
pub fn set_region<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_vpn_gateway<T: Into<String>>(self, v: T) -> Self
pub fn set_vpn_gateway<T: Into<String>>(self, v: T) -> Self
Sets the value of vpn_gateway.
§Example
ⓘ
let x = GetStatusRequest::new().set_vpn_gateway("example");Trait Implementations§
Source§impl Clone for GetStatusRequest
impl Clone for GetStatusRequest
Source§fn clone(&self) -> GetStatusRequest
fn clone(&self) -> GetStatusRequest
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 GetStatusRequest
impl Debug for GetStatusRequest
Source§impl Default for GetStatusRequest
impl Default for GetStatusRequest
Source§fn default() -> GetStatusRequest
fn default() -> GetStatusRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for GetStatusRequest
impl PartialEq for GetStatusRequest
impl StructuralPartialEq for GetStatusRequest
Auto Trait Implementations§
impl Freeze for GetStatusRequest
impl RefUnwindSafe for GetStatusRequest
impl Send for GetStatusRequest
impl Sync for GetStatusRequest
impl Unpin for GetStatusRequest
impl UnwindSafe for GetStatusRequest
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