#[non_exhaustive]pub struct SharingEnvironmentConfig {
pub environment: Option<Environment>,
/* private fields */
}Expand description
Sharing environment is a behavior model for sharing data within a data exchange. This option is configurable for a data exchange.
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.environment: Option<Environment>Implementations§
Source§impl SharingEnvironmentConfig
impl SharingEnvironmentConfig
pub fn new() -> Self
Sourcepub fn set_environment<T: Into<Option<Environment>>>(self, v: T) -> Self
pub fn set_environment<T: Into<Option<Environment>>>(self, v: T) -> Self
Sets the value of environment.
Note that all the setters affecting environment are mutually
exclusive.
§Example
ⓘ
use google_cloud_bigquery_analyticshub_v1::model::sharing_environment_config::DefaultExchangeConfig;
let x = SharingEnvironmentConfig::new().set_environment(Some(
google_cloud_bigquery_analyticshub_v1::model::sharing_environment_config::Environment::DefaultExchangeConfig(DefaultExchangeConfig::default().into())));Sourcepub fn default_exchange_config(&self) -> Option<&Box<DefaultExchangeConfig>>
pub fn default_exchange_config(&self) -> Option<&Box<DefaultExchangeConfig>>
The value of environment
if it holds a DefaultExchangeConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_default_exchange_config<T: Into<Box<DefaultExchangeConfig>>>(
self,
v: T,
) -> Self
pub fn set_default_exchange_config<T: Into<Box<DefaultExchangeConfig>>>( self, v: T, ) -> Self
Sets the value of environment
to hold a DefaultExchangeConfig.
Note that all the setters affecting environment are
mutually exclusive.
§Example
ⓘ
use google_cloud_bigquery_analyticshub_v1::model::sharing_environment_config::DefaultExchangeConfig;
let x = SharingEnvironmentConfig::new().set_default_exchange_config(DefaultExchangeConfig::default()/* use setters */);
assert!(x.default_exchange_config().is_some());
assert!(x.dcr_exchange_config().is_none());Sourcepub fn dcr_exchange_config(&self) -> Option<&Box<DcrExchangeConfig>>
pub fn dcr_exchange_config(&self) -> Option<&Box<DcrExchangeConfig>>
The value of environment
if it holds a DcrExchangeConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_dcr_exchange_config<T: Into<Box<DcrExchangeConfig>>>(
self,
v: T,
) -> Self
pub fn set_dcr_exchange_config<T: Into<Box<DcrExchangeConfig>>>( self, v: T, ) -> Self
Sets the value of environment
to hold a DcrExchangeConfig.
Note that all the setters affecting environment are
mutually exclusive.
§Example
ⓘ
use google_cloud_bigquery_analyticshub_v1::model::sharing_environment_config::DcrExchangeConfig;
let x = SharingEnvironmentConfig::new().set_dcr_exchange_config(DcrExchangeConfig::default()/* use setters */);
assert!(x.dcr_exchange_config().is_some());
assert!(x.default_exchange_config().is_none());Trait Implementations§
Source§impl Clone for SharingEnvironmentConfig
impl Clone for SharingEnvironmentConfig
Source§fn clone(&self) -> SharingEnvironmentConfig
fn clone(&self) -> SharingEnvironmentConfig
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 SharingEnvironmentConfig
impl Debug for SharingEnvironmentConfig
Source§impl Default for SharingEnvironmentConfig
impl Default for SharingEnvironmentConfig
Source§fn default() -> SharingEnvironmentConfig
fn default() -> SharingEnvironmentConfig
Returns the “default value” for a type. Read more
Source§impl Message for SharingEnvironmentConfig
impl Message for SharingEnvironmentConfig
Source§impl PartialEq for SharingEnvironmentConfig
impl PartialEq for SharingEnvironmentConfig
impl StructuralPartialEq for SharingEnvironmentConfig
Auto Trait Implementations§
impl Freeze for SharingEnvironmentConfig
impl RefUnwindSafe for SharingEnvironmentConfig
impl Send for SharingEnvironmentConfig
impl Sync for SharingEnvironmentConfig
impl Unpin for SharingEnvironmentConfig
impl UnwindSafe for SharingEnvironmentConfig
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