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: 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
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: 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) -> &[DimensionMapping]
pub fn dimension_mappings(&self) -> &[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) -> &[MixedMeasureMapping]
pub fn mixed_measure_mappings(&self) -> &[MixedMeasureMapping]
Source to target mappings for measures.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .mixed_measure_mappings.is_none()
.
sourcepub fn measure_name_column(&self) -> Option<&str>
pub fn measure_name_column(&self) -> Option<&str>
Trait Implementations§
impl StructuralPartialEq for DataModel
Auto Trait Implementations§
impl Freeze for DataModel
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more