Struct aws_sdk_timestreamwrite::types::DataModel
source · #[non_exhaustive]pub struct DataModel {
pub time_column: Option<String>,
pub time_unit: Option<TimeUnit>,
pub dimension_mappings: Option<Vec<DimensionMapping>>,
pub multi_measure_mappings: Option<MultiMeasureMappings>,
pub mixed_measure_mappings: Option<Vec<MixedMeasureMapping>>,
pub measure_name_column: Option<String>,
}
Expand description
Data model for a batch load task.
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.time_column: Option<String>
Source column to be mapped to time.
time_unit: Option<TimeUnit>
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is MILLISECONDS
.
dimension_mappings: Option<Vec<DimensionMapping>>
Source to target mappings for dimensions.
multi_measure_mappings: Option<MultiMeasureMappings>
Source to target mappings for multi-measure records.
mixed_measure_mappings: Option<Vec<MixedMeasureMapping>>
Source to target mappings for measures.
measure_name_column: Option<String>
Implementations§
source§impl DataModel
impl DataModel
sourcepub fn time_column(&self) -> Option<&str>
pub fn time_column(&self) -> Option<&str>
Source column to be mapped to time.
sourcepub fn time_unit(&self) -> Option<&TimeUnit>
pub fn time_unit(&self) -> Option<&TimeUnit>
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is MILLISECONDS
.
sourcepub fn dimension_mappings(&self) -> Option<&[DimensionMapping]>
pub fn dimension_mappings(&self) -> Option<&[DimensionMapping]>
Source to target mappings for dimensions.
sourcepub fn multi_measure_mappings(&self) -> Option<&MultiMeasureMappings>
pub fn multi_measure_mappings(&self) -> Option<&MultiMeasureMappings>
Source to target mappings for multi-measure records.
sourcepub fn mixed_measure_mappings(&self) -> Option<&[MixedMeasureMapping]>
pub fn mixed_measure_mappings(&self) -> Option<&[MixedMeasureMapping]>
Source to target mappings for measures.
sourcepub fn measure_name_column(&self) -> Option<&str>
pub fn measure_name_column(&self) -> Option<&str>
Trait Implementations§
source§impl PartialEq<DataModel> for DataModel
impl PartialEq<DataModel> for DataModel
impl StructuralPartialEq for DataModel
Auto Trait Implementations§
impl RefUnwindSafe for DataModel
impl Send for DataModel
impl Sync for DataModel
impl Unpin for DataModel
impl UnwindSafe for DataModel
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