#[non_exhaustive]pub struct ProviderConfig {
pub source_type: Option<ProviderSource>,
/* private fields */
}Expand description
ProviderConfig contains the provider configurations.
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.source_type: Option<ProviderSource>Optional. ProviderSource specifies the source type of the provider.
Implementations§
Source§impl ProviderConfig
impl ProviderConfig
pub fn new() -> Self
Sourcepub fn set_source_type<T>(self, v: T) -> Selfwhere
T: Into<ProviderSource>,
pub fn set_source_type<T>(self, v: T) -> Selfwhere
T: Into<ProviderSource>,
Sets the value of source_type.
§Example
ⓘ
use google_cloud_config_v1::model::provider_config::ProviderSource;
let x0 = ProviderConfig::new().set_source_type(ProviderSource::ServiceMaintained);Sourcepub fn set_or_clear_source_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProviderSource>,
pub fn set_or_clear_source_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProviderSource>,
Sets or clears the value of source_type.
§Example
ⓘ
use google_cloud_config_v1::model::provider_config::ProviderSource;
let x0 = ProviderConfig::new().set_or_clear_source_type(Some(ProviderSource::ServiceMaintained));
let x_none = ProviderConfig::new().set_or_clear_source_type(None::<ProviderSource>);Trait Implementations§
Source§impl Clone for ProviderConfig
impl Clone for ProviderConfig
Source§fn clone(&self) -> ProviderConfig
fn clone(&self) -> ProviderConfig
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 ProviderConfig
impl Debug for ProviderConfig
Source§impl Default for ProviderConfig
impl Default for ProviderConfig
Source§fn default() -> ProviderConfig
fn default() -> ProviderConfig
Returns the “default value” for a type. Read more
Source§impl Message for ProviderConfig
impl Message for ProviderConfig
Source§impl PartialEq for ProviderConfig
impl PartialEq for ProviderConfig
impl StructuralPartialEq for ProviderConfig
Auto Trait Implementations§
impl Freeze for ProviderConfig
impl RefUnwindSafe for ProviderConfig
impl Send for ProviderConfig
impl Sync for ProviderConfig
impl Unpin for ProviderConfig
impl UnwindSafe for ProviderConfig
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