#[non_exhaustive]pub struct DataSourceConnectionSpec {
pub bigquery_connection_spec: Option<BigQueryConnectionSpec>,
/* private fields */
}Expand description
Specification that applies to a data source connection. Valid only for
entries with the DATA_SOURCE_CONNECTION type.
Only one of internal specs can be set at the time, and cannot
be changed later.
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.bigquery_connection_spec: Option<BigQueryConnectionSpec>Output only. Fields specific to BigQuery connections.
Implementations§
Source§impl DataSourceConnectionSpec
impl DataSourceConnectionSpec
pub fn new() -> Self
Sourcepub fn set_bigquery_connection_spec<T>(self, v: T) -> Selfwhere
T: Into<BigQueryConnectionSpec>,
pub fn set_bigquery_connection_spec<T>(self, v: T) -> Selfwhere
T: Into<BigQueryConnectionSpec>,
Sets the value of bigquery_connection_spec.
§Example
ⓘ
use google_cloud_datacatalog_v1::model::BigQueryConnectionSpec;
let x = DataSourceConnectionSpec::new().set_bigquery_connection_spec(BigQueryConnectionSpec::default()/* use setters */);Sourcepub fn set_or_clear_bigquery_connection_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<BigQueryConnectionSpec>,
pub fn set_or_clear_bigquery_connection_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<BigQueryConnectionSpec>,
Sets or clears the value of bigquery_connection_spec.
§Example
ⓘ
use google_cloud_datacatalog_v1::model::BigQueryConnectionSpec;
let x = DataSourceConnectionSpec::new().set_or_clear_bigquery_connection_spec(Some(BigQueryConnectionSpec::default()/* use setters */));
let x = DataSourceConnectionSpec::new().set_or_clear_bigquery_connection_spec(None::<BigQueryConnectionSpec>);Trait Implementations§
Source§impl Clone for DataSourceConnectionSpec
impl Clone for DataSourceConnectionSpec
Source§fn clone(&self) -> DataSourceConnectionSpec
fn clone(&self) -> DataSourceConnectionSpec
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 DataSourceConnectionSpec
impl Debug for DataSourceConnectionSpec
Source§impl Default for DataSourceConnectionSpec
impl Default for DataSourceConnectionSpec
Source§fn default() -> DataSourceConnectionSpec
fn default() -> DataSourceConnectionSpec
Returns the “default value” for a type. Read more
Source§impl Message for DataSourceConnectionSpec
impl Message for DataSourceConnectionSpec
Source§impl PartialEq for DataSourceConnectionSpec
impl PartialEq for DataSourceConnectionSpec
impl StructuralPartialEq for DataSourceConnectionSpec
Auto Trait Implementations§
impl Freeze for DataSourceConnectionSpec
impl RefUnwindSafe for DataSourceConnectionSpec
impl Send for DataSourceConnectionSpec
impl Sync for DataSourceConnectionSpec
impl Unpin for DataSourceConnectionSpec
impl UnsafeUnpin for DataSourceConnectionSpec
impl UnwindSafe for DataSourceConnectionSpec
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