#[non_exhaustive]pub struct CreateGoogleApiSourceRequest {
pub parent: String,
pub google_api_source: Option<GoogleApiSource>,
pub google_api_source_id: String,
pub validate_only: bool,
/* private fields */
}Expand description
The request message for the CreateGoogleApiSource 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.parent: StringRequired. The parent collection in which to add this google api source.
google_api_source: Option<GoogleApiSource>Required. The google api source to create.
google_api_source_id: StringRequired. The user-provided ID to be assigned to the GoogleApiSource. It
should match the format ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$.
validate_only: boolOptional. If set, validate the request and preview the review, but do not post it.
Implementations§
Source§impl CreateGoogleApiSourceRequest
impl CreateGoogleApiSourceRequest
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_google_api_source<T>(self, v: T) -> Selfwhere
T: Into<GoogleApiSource>,
pub fn set_google_api_source<T>(self, v: T) -> Selfwhere
T: Into<GoogleApiSource>,
Sets the value of google_api_source.
Sourcepub fn set_or_clear_google_api_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<GoogleApiSource>,
pub fn set_or_clear_google_api_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<GoogleApiSource>,
Sets or clears the value of google_api_source.
Sourcepub fn set_google_api_source_id<T: Into<String>>(self, v: T) -> Self
pub fn set_google_api_source_id<T: Into<String>>(self, v: T) -> Self
Sets the value of google_api_source_id.
Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
Trait Implementations§
Source§impl Clone for CreateGoogleApiSourceRequest
impl Clone for CreateGoogleApiSourceRequest
Source§fn clone(&self) -> CreateGoogleApiSourceRequest
fn clone(&self) -> CreateGoogleApiSourceRequest
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 CreateGoogleApiSourceRequest
impl Debug for CreateGoogleApiSourceRequest
Source§impl Default for CreateGoogleApiSourceRequest
impl Default for CreateGoogleApiSourceRequest
Source§fn default() -> CreateGoogleApiSourceRequest
fn default() -> CreateGoogleApiSourceRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateGoogleApiSourceRequest
impl PartialEq for CreateGoogleApiSourceRequest
Source§fn eq(&self, other: &CreateGoogleApiSourceRequest) -> bool
fn eq(&self, other: &CreateGoogleApiSourceRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateGoogleApiSourceRequest
Auto Trait Implementations§
impl Freeze for CreateGoogleApiSourceRequest
impl RefUnwindSafe for CreateGoogleApiSourceRequest
impl Send for CreateGoogleApiSourceRequest
impl Sync for CreateGoogleApiSourceRequest
impl Unpin for CreateGoogleApiSourceRequest
impl UnwindSafe for CreateGoogleApiSourceRequest
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