#[non_exhaustive]pub struct UpdateGoogleApiSourceRequest {
pub google_api_source: Option<GoogleApiSource>,
pub update_mask: Option<FieldMask>,
pub allow_missing: bool,
pub validate_only: bool,
/* private fields */
}Expand description
The request message for the UpdateGoogleApiSource method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.google_api_source: Option<GoogleApiSource>Required. The GoogleApiSource to be updated.
update_mask: Option<FieldMask>Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of “*”.
allow_missing: boolOptional. If set to true, and the GoogleApiSource is not found, a new
GoogleApiSource will be created. In this situation, update_mask is
ignored.
validate_only: boolOptional. If set, validate the request and preview the review, but do not post it.
Implementations§
Source§impl UpdateGoogleApiSourceRequest
impl UpdateGoogleApiSourceRequest
pub fn new() -> Self
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_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
Sourcepub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
Sets the value of allow_missing.
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 UpdateGoogleApiSourceRequest
impl Clone for UpdateGoogleApiSourceRequest
Source§fn clone(&self) -> UpdateGoogleApiSourceRequest
fn clone(&self) -> UpdateGoogleApiSourceRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateGoogleApiSourceRequest
impl Debug for UpdateGoogleApiSourceRequest
Source§impl Default for UpdateGoogleApiSourceRequest
impl Default for UpdateGoogleApiSourceRequest
Source§fn default() -> UpdateGoogleApiSourceRequest
fn default() -> UpdateGoogleApiSourceRequest
Source§impl PartialEq for UpdateGoogleApiSourceRequest
impl PartialEq for UpdateGoogleApiSourceRequest
Source§fn eq(&self, other: &UpdateGoogleApiSourceRequest) -> bool
fn eq(&self, other: &UpdateGoogleApiSourceRequest) -> bool
self and other values to be equal, and is used by ==.