#[non_exhaustive]pub struct DataSourceExportSettings {
pub enabled: bool,
pub retention_days: i32,
pub latest_export_job_state: LatestExportJobState,
pub data_freshness_time: Option<Timestamp>,
pub data_volume: i64,
/* private fields */
}Expand description
The export settings for a data source.
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.enabled: boolRequired. Whether the data source is enabled for export.
retention_days: i32Required. The retention period for the data source in days.
latest_export_job_state: LatestExportJobStateOutput only. The state of the latest data source export job.
data_freshness_time: Option<Timestamp>Output only. The data freshness of the given export which represents the time bucket at which the latest event was exported.
data_volume: i64Output only. The stored data volume of all the exports.
Implementations§
Source§impl DataSourceExportSettings
impl DataSourceExportSettings
Sourcepub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_retention_days<T: Into<i32>>(self, v: T) -> Self
pub fn set_retention_days<T: Into<i32>>(self, v: T) -> Self
Sets the value of retention_days.
§Example
ⓘ
let x = DataSourceExportSettings::new().set_retention_days(42);Sourcepub fn set_latest_export_job_state<T: Into<LatestExportJobState>>(
self,
v: T,
) -> Self
pub fn set_latest_export_job_state<T: Into<LatestExportJobState>>( self, v: T, ) -> Self
Sets the value of latest_export_job_state.
§Example
ⓘ
use google_cloud_chronicle_v1::model::LatestExportJobState;
let x0 = DataSourceExportSettings::new().set_latest_export_job_state(LatestExportJobState::Success);
let x1 = DataSourceExportSettings::new().set_latest_export_job_state(LatestExportJobState::Failed);Sourcepub fn set_data_freshness_time<T>(self, v: T) -> Self
pub fn set_data_freshness_time<T>(self, v: T) -> Self
Sets the value of data_freshness_time.
§Example
ⓘ
use wkt::Timestamp;
let x = DataSourceExportSettings::new().set_data_freshness_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_data_freshness_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_data_freshness_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of data_freshness_time.
§Example
ⓘ
use wkt::Timestamp;
let x = DataSourceExportSettings::new().set_or_clear_data_freshness_time(Some(Timestamp::default()/* use setters */));
let x = DataSourceExportSettings::new().set_or_clear_data_freshness_time(None::<Timestamp>);Sourcepub fn set_data_volume<T: Into<i64>>(self, v: T) -> Self
pub fn set_data_volume<T: Into<i64>>(self, v: T) -> Self
Sets the value of data_volume.
§Example
ⓘ
let x = DataSourceExportSettings::new().set_data_volume(42);Trait Implementations§
Source§impl Clone for DataSourceExportSettings
impl Clone for DataSourceExportSettings
Source§fn clone(&self) -> DataSourceExportSettings
fn clone(&self) -> DataSourceExportSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DataSourceExportSettings
impl Debug for DataSourceExportSettings
Source§impl Default for DataSourceExportSettings
impl Default for DataSourceExportSettings
Source§fn default() -> DataSourceExportSettings
fn default() -> DataSourceExportSettings
Returns the “default value” for a type. Read more
Source§impl Message for DataSourceExportSettings
impl Message for DataSourceExportSettings
Source§impl PartialEq for DataSourceExportSettings
impl PartialEq for DataSourceExportSettings
Source§fn eq(&self, other: &DataSourceExportSettings) -> bool
fn eq(&self, other: &DataSourceExportSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DataSourceExportSettings
Auto Trait Implementations§
impl Freeze for DataSourceExportSettings
impl RefUnwindSafe for DataSourceExportSettings
impl Send for DataSourceExportSettings
impl Sync for DataSourceExportSettings
impl Unpin for DataSourceExportSettings
impl UnsafeUnpin for DataSourceExportSettings
impl UnwindSafe for DataSourceExportSettings
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