#[non_exhaustive]pub struct CreateApiConfigRequest {
pub parent: String,
pub api_config_id: String,
pub api_config: Option<ApiConfig>,
/* private fields */
}Expand description
Request message for ApiGatewayService.CreateApiConfig
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 API Config, of the form:
projects/*/locations/global/apis/*
api_config_id: StringRequired. Identifier to assign to the API Config. Must be unique within scope of the parent resource.
api_config: Option<ApiConfig>Required. API resource.
Implementations§
Source§impl CreateApiConfigRequest
impl CreateApiConfigRequest
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_api_config_id<T: Into<String>>(self, v: T) -> Self
pub fn set_api_config_id<T: Into<String>>(self, v: T) -> Self
Sets the value of api_config_id.
§Example
ⓘ
let x = CreateApiConfigRequest::new().set_api_config_id("example");Sourcepub fn set_api_config<T>(self, v: T) -> Self
pub fn set_api_config<T>(self, v: T) -> Self
Sets the value of api_config.
§Example
ⓘ
use google_cloud_apigateway_v1::model::ApiConfig;
let x = CreateApiConfigRequest::new().set_api_config(ApiConfig::default()/* use setters */);Sourcepub fn set_or_clear_api_config<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_api_config<T>(self, v: Option<T>) -> Self
Sets or clears the value of api_config.
§Example
ⓘ
use google_cloud_apigateway_v1::model::ApiConfig;
let x = CreateApiConfigRequest::new().set_or_clear_api_config(Some(ApiConfig::default()/* use setters */));
let x = CreateApiConfigRequest::new().set_or_clear_api_config(None::<ApiConfig>);Trait Implementations§
Source§impl Clone for CreateApiConfigRequest
impl Clone for CreateApiConfigRequest
Source§fn clone(&self) -> CreateApiConfigRequest
fn clone(&self) -> CreateApiConfigRequest
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 CreateApiConfigRequest
impl Debug for CreateApiConfigRequest
Source§impl Default for CreateApiConfigRequest
impl Default for CreateApiConfigRequest
Source§fn default() -> CreateApiConfigRequest
fn default() -> CreateApiConfigRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateApiConfigRequest
impl Message for CreateApiConfigRequest
Source§impl PartialEq for CreateApiConfigRequest
impl PartialEq for CreateApiConfigRequest
impl StructuralPartialEq for CreateApiConfigRequest
Auto Trait Implementations§
impl Freeze for CreateApiConfigRequest
impl RefUnwindSafe for CreateApiConfigRequest
impl Send for CreateApiConfigRequest
impl Sync for CreateApiConfigRequest
impl Unpin for CreateApiConfigRequest
impl UnsafeUnpin for CreateApiConfigRequest
impl UnwindSafe for CreateApiConfigRequest
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