#[non_exhaustive]pub struct SubmitConfigSourceRequest {
pub service_name: String,
pub config_source: Option<ConfigSource>,
pub validate_only: bool,
/* private fields */
}Expand description
Request message for SubmitConfigSource 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.service_name: StringRequired. The name of the service. See the
overview for naming
requirements. For example: example.googleapis.com.
config_source: Option<ConfigSource>Required. The source configuration for the service.
validate_only: boolOptional. If set, this will result in the generation of a
google.api.Service configuration based on the ConfigSource provided,
but the generated config and the sources will NOT be persisted.
Implementations§
Source§impl SubmitConfigSourceRequest
impl SubmitConfigSourceRequest
pub fn new() -> Self
Sourcepub fn set_service_name<T: Into<String>>(self, v: T) -> Self
pub fn set_service_name<T: Into<String>>(self, v: T) -> Self
Sets the value of service_name.
Sourcepub fn set_config_source<T>(self, v: T) -> Selfwhere
T: Into<ConfigSource>,
pub fn set_config_source<T>(self, v: T) -> Selfwhere
T: Into<ConfigSource>,
Sets the value of config_source.
Sourcepub fn set_or_clear_config_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConfigSource>,
pub fn set_or_clear_config_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConfigSource>,
Sets or clears the value of config_source.
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 SubmitConfigSourceRequest
impl Clone for SubmitConfigSourceRequest
Source§fn clone(&self) -> SubmitConfigSourceRequest
fn clone(&self) -> SubmitConfigSourceRequest
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 SubmitConfigSourceRequest
impl Debug for SubmitConfigSourceRequest
Source§impl Default for SubmitConfigSourceRequest
impl Default for SubmitConfigSourceRequest
Source§fn default() -> SubmitConfigSourceRequest
fn default() -> SubmitConfigSourceRequest
Returns the “default value” for a type. Read more
Source§impl Message for SubmitConfigSourceRequest
impl Message for SubmitConfigSourceRequest
impl StructuralPartialEq for SubmitConfigSourceRequest
Auto Trait Implementations§
impl Freeze for SubmitConfigSourceRequest
impl RefUnwindSafe for SubmitConfigSourceRequest
impl Send for SubmitConfigSourceRequest
impl Sync for SubmitConfigSourceRequest
impl Unpin for SubmitConfigSourceRequest
impl UnwindSafe for SubmitConfigSourceRequest
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