#[non_exhaustive]pub struct DestinationConfig {
pub destination_connection_profile: String,
pub destination_stream_config: Option<DestinationStreamConfig>,
/* private fields */
}
Expand description
The configuration of the stream destination.
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.destination_connection_profile: String
Required. Destination connection profile resource.
Format: projects/{project}/locations/{location}/connectionProfiles/{name}
destination_stream_config: Option<DestinationStreamConfig>
Stream configuration that is specific to the data destination type.
Implementations§
Source§impl DestinationConfig
impl DestinationConfig
pub fn new() -> Self
Sourcepub fn set_destination_connection_profile<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_connection_profile<T: Into<String>>(self, v: T) -> Self
Sets the value of destination_connection_profile.
Sourcepub fn set_destination_stream_config<T: Into<Option<DestinationStreamConfig>>>(
self,
v: T,
) -> Self
pub fn set_destination_stream_config<T: Into<Option<DestinationStreamConfig>>>( self, v: T, ) -> Self
Sets the value of destination_stream_config.
Note that all the setters affecting destination_stream_config
are mutually
exclusive.
Sourcepub fn gcs_destination_config(&self) -> Option<&Box<GcsDestinationConfig>>
pub fn gcs_destination_config(&self) -> Option<&Box<GcsDestinationConfig>>
The value of destination_stream_config
if it holds a GcsDestinationConfig
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_destination_config<T: Into<Box<GcsDestinationConfig>>>(
self,
v: T,
) -> Self
pub fn set_gcs_destination_config<T: Into<Box<GcsDestinationConfig>>>( self, v: T, ) -> Self
Sets the value of destination_stream_config
to hold a GcsDestinationConfig
.
Note that all the setters affecting destination_stream_config
are
mutually exclusive.
Sourcepub fn bigquery_destination_config(
&self,
) -> Option<&Box<BigQueryDestinationConfig>>
pub fn bigquery_destination_config( &self, ) -> Option<&Box<BigQueryDestinationConfig>>
The value of destination_stream_config
if it holds a BigqueryDestinationConfig
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_bigquery_destination_config<T: Into<Box<BigQueryDestinationConfig>>>(
self,
v: T,
) -> Self
pub fn set_bigquery_destination_config<T: Into<Box<BigQueryDestinationConfig>>>( self, v: T, ) -> Self
Sets the value of destination_stream_config
to hold a BigqueryDestinationConfig
.
Note that all the setters affecting destination_stream_config
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for DestinationConfig
impl Clone for DestinationConfig
Source§fn clone(&self) -> DestinationConfig
fn clone(&self) -> DestinationConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more