#[non_exhaustive]pub struct CreateGatewayRequest {
pub parent: String,
pub gateway_id: String,
pub gateway: Option<Gateway>,
/* private fields */
}Expand description
Request message for ApiGatewayService.CreateGateway
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. Parent resource of the Gateway, of the form:
projects/*/locations/*
gateway_id: StringRequired. Identifier to assign to the Gateway. Must be unique within scope of the parent resource.
gateway: Option<Gateway>Required. Gateway resource.
Implementations§
Source§impl CreateGatewayRequest
impl CreateGatewayRequest
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
Sourcepub fn set_gateway_id<T: Into<String>>(self, v: T) -> Self
pub fn set_gateway_id<T: Into<String>>(self, v: T) -> Self
Sets the value of gateway_id.
§Example
ⓘ
let x = CreateGatewayRequest::new().set_gateway_id("example");Sourcepub fn set_gateway<T>(self, v: T) -> Self
pub fn set_gateway<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_gateway<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_gateway<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateGatewayRequest
impl Clone for CreateGatewayRequest
Source§fn clone(&self) -> CreateGatewayRequest
fn clone(&self) -> CreateGatewayRequest
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 CreateGatewayRequest
impl Debug for CreateGatewayRequest
Source§impl Default for CreateGatewayRequest
impl Default for CreateGatewayRequest
Source§fn default() -> CreateGatewayRequest
fn default() -> CreateGatewayRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateGatewayRequest
impl Message for CreateGatewayRequest
Source§impl PartialEq for CreateGatewayRequest
impl PartialEq for CreateGatewayRequest
impl StructuralPartialEq for CreateGatewayRequest
Auto Trait Implementations§
impl Freeze for CreateGatewayRequest
impl RefUnwindSafe for CreateGatewayRequest
impl Send for CreateGatewayRequest
impl Sync for CreateGatewayRequest
impl Unpin for CreateGatewayRequest
impl UnsafeUnpin for CreateGatewayRequest
impl UnwindSafe for CreateGatewayRequest
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