#[non_exhaustive]pub struct IngestionDataSourceSettings {
pub platform_logs_settings: Option<PlatformLogsSettings>,
pub source: Option<Source>,
/* private fields */
}Expand description
Settings for an ingestion data source on a topic.
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.platform_logs_settings: Option<PlatformLogsSettings>Optional. Platform Logs settings. If unset, no Platform Logs will be generated.
source: Option<Source>Only one source type can have settings set.
Implementations§
Source§impl IngestionDataSourceSettings
impl IngestionDataSourceSettings
pub fn new() -> Self
Sourcepub fn set_platform_logs_settings<T>(self, v: T) -> Selfwhere
T: Into<PlatformLogsSettings>,
pub fn set_platform_logs_settings<T>(self, v: T) -> Selfwhere
T: Into<PlatformLogsSettings>,
Sets the value of platform_logs_settings.
§Example
use google_cloud_pubsub::model::PlatformLogsSettings;
let x = IngestionDataSourceSettings::new().set_platform_logs_settings(PlatformLogsSettings::default()/* use setters */);Sourcepub fn set_or_clear_platform_logs_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<PlatformLogsSettings>,
pub fn set_or_clear_platform_logs_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<PlatformLogsSettings>,
Sets or clears the value of platform_logs_settings.
§Example
use google_cloud_pubsub::model::PlatformLogsSettings;
let x = IngestionDataSourceSettings::new().set_or_clear_platform_logs_settings(Some(PlatformLogsSettings::default()/* use setters */));
let x = IngestionDataSourceSettings::new().set_or_clear_platform_logs_settings(None::<PlatformLogsSettings>);Sourcepub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
pub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
Sets the value of source.
Note that all the setters affecting source are mutually
exclusive.
§Example
use google_cloud_pubsub::model::ingestion_data_source_settings::AwsKinesis;
let x = IngestionDataSourceSettings::new().set_source(Some(
google_cloud_pubsub::model::ingestion_data_source_settings::Source::AwsKinesis(AwsKinesis::default().into())));Sourcepub fn aws_kinesis(&self) -> Option<&Box<AwsKinesis>>
pub fn aws_kinesis(&self) -> Option<&Box<AwsKinesis>>
The value of source
if it holds a AwsKinesis, None if the field is not set or
holds a different branch.
Sourcepub fn set_aws_kinesis<T: Into<Box<AwsKinesis>>>(self, v: T) -> Self
pub fn set_aws_kinesis<T: Into<Box<AwsKinesis>>>(self, v: T) -> Self
Sets the value of source
to hold a AwsKinesis.
Note that all the setters affecting source are
mutually exclusive.
§Example
use google_cloud_pubsub::model::ingestion_data_source_settings::AwsKinesis;
let x = IngestionDataSourceSettings::new().set_aws_kinesis(AwsKinesis::default()/* use setters */);
assert!(x.aws_kinesis().is_some());
assert!(x.cloud_storage().is_none());
assert!(x.azure_event_hubs().is_none());
assert!(x.aws_msk().is_none());
assert!(x.confluent_cloud().is_none());Sourcepub fn cloud_storage(&self) -> Option<&Box<CloudStorage>>
pub fn cloud_storage(&self) -> Option<&Box<CloudStorage>>
The value of source
if it holds a CloudStorage, None if the field is not set or
holds a different branch.
Sourcepub fn set_cloud_storage<T: Into<Box<CloudStorage>>>(self, v: T) -> Self
pub fn set_cloud_storage<T: Into<Box<CloudStorage>>>(self, v: T) -> Self
Sets the value of source
to hold a CloudStorage.
Note that all the setters affecting source are
mutually exclusive.
§Example
use google_cloud_pubsub::model::ingestion_data_source_settings::CloudStorage;
let x = IngestionDataSourceSettings::new().set_cloud_storage(CloudStorage::default()/* use setters */);
assert!(x.cloud_storage().is_some());
assert!(x.aws_kinesis().is_none());
assert!(x.azure_event_hubs().is_none());
assert!(x.aws_msk().is_none());
assert!(x.confluent_cloud().is_none());Sourcepub fn azure_event_hubs(&self) -> Option<&Box<AzureEventHubs>>
pub fn azure_event_hubs(&self) -> Option<&Box<AzureEventHubs>>
The value of source
if it holds a AzureEventHubs, None if the field is not set or
holds a different branch.
Sourcepub fn set_azure_event_hubs<T: Into<Box<AzureEventHubs>>>(self, v: T) -> Self
pub fn set_azure_event_hubs<T: Into<Box<AzureEventHubs>>>(self, v: T) -> Self
Sets the value of source
to hold a AzureEventHubs.
Note that all the setters affecting source are
mutually exclusive.
§Example
use google_cloud_pubsub::model::ingestion_data_source_settings::AzureEventHubs;
let x = IngestionDataSourceSettings::new().set_azure_event_hubs(AzureEventHubs::default()/* use setters */);
assert!(x.azure_event_hubs().is_some());
assert!(x.aws_kinesis().is_none());
assert!(x.cloud_storage().is_none());
assert!(x.aws_msk().is_none());
assert!(x.confluent_cloud().is_none());Sourcepub fn aws_msk(&self) -> Option<&Box<AwsMsk>>
pub fn aws_msk(&self) -> Option<&Box<AwsMsk>>
The value of source
if it holds a AwsMsk, None if the field is not set or
holds a different branch.
Sourcepub fn set_aws_msk<T: Into<Box<AwsMsk>>>(self, v: T) -> Self
pub fn set_aws_msk<T: Into<Box<AwsMsk>>>(self, v: T) -> Self
Sets the value of source
to hold a AwsMsk.
Note that all the setters affecting source are
mutually exclusive.
§Example
use google_cloud_pubsub::model::ingestion_data_source_settings::AwsMsk;
let x = IngestionDataSourceSettings::new().set_aws_msk(AwsMsk::default()/* use setters */);
assert!(x.aws_msk().is_some());
assert!(x.aws_kinesis().is_none());
assert!(x.cloud_storage().is_none());
assert!(x.azure_event_hubs().is_none());
assert!(x.confluent_cloud().is_none());Sourcepub fn confluent_cloud(&self) -> Option<&Box<ConfluentCloud>>
pub fn confluent_cloud(&self) -> Option<&Box<ConfluentCloud>>
The value of source
if it holds a ConfluentCloud, None if the field is not set or
holds a different branch.
Sourcepub fn set_confluent_cloud<T: Into<Box<ConfluentCloud>>>(self, v: T) -> Self
pub fn set_confluent_cloud<T: Into<Box<ConfluentCloud>>>(self, v: T) -> Self
Sets the value of source
to hold a ConfluentCloud.
Note that all the setters affecting source are
mutually exclusive.
§Example
use google_cloud_pubsub::model::ingestion_data_source_settings::ConfluentCloud;
let x = IngestionDataSourceSettings::new().set_confluent_cloud(ConfluentCloud::default()/* use setters */);
assert!(x.confluent_cloud().is_some());
assert!(x.aws_kinesis().is_none());
assert!(x.cloud_storage().is_none());
assert!(x.azure_event_hubs().is_none());
assert!(x.aws_msk().is_none());Trait Implementations§
Source§impl Clone for IngestionDataSourceSettings
impl Clone for IngestionDataSourceSettings
Source§fn clone(&self) -> IngestionDataSourceSettings
fn clone(&self) -> IngestionDataSourceSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IngestionDataSourceSettings
impl Debug for IngestionDataSourceSettings
Source§impl Default for IngestionDataSourceSettings
impl Default for IngestionDataSourceSettings
Source§fn default() -> IngestionDataSourceSettings
fn default() -> IngestionDataSourceSettings
impl StructuralPartialEq for IngestionDataSourceSettings
Auto Trait Implementations§
impl Freeze for IngestionDataSourceSettings
impl RefUnwindSafe for IngestionDataSourceSettings
impl Send for IngestionDataSourceSettings
impl Sync for IngestionDataSourceSettings
impl Unpin for IngestionDataSourceSettings
impl UnwindSafe for IngestionDataSourceSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request