Struct aws_sdk_timestreamquery::types::Type
source · #[non_exhaustive]pub struct Type {
pub scalar_type: Option<ScalarType>,
pub array_column_info: Option<ColumnInfo>,
pub time_series_measure_value_column_info: Option<ColumnInfo>,
pub row_column_info: Option<Vec<ColumnInfo>>,
}
Expand description
Contains the data type of a column in a query result set. The data type can be scalar or complex. The supported scalar data types are integers, Boolean, string, double, timestamp, date, time, and intervals. The supported complex data types are arrays, rows, and timeseries.
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.scalar_type: Option<ScalarType>
Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time. For more information, see Supported data types.
array_column_info: Option<ColumnInfo>
Indicates if the column is an array.
time_series_measure_value_column_info: Option<ColumnInfo>
Indicates if the column is a timeseries data type.
row_column_info: Option<Vec<ColumnInfo>>
Indicates if the column is a row.
Implementations§
source§impl Type
impl Type
sourcepub fn scalar_type(&self) -> Option<&ScalarType>
pub fn scalar_type(&self) -> Option<&ScalarType>
Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time. For more information, see Supported data types.
sourcepub fn array_column_info(&self) -> Option<&ColumnInfo>
pub fn array_column_info(&self) -> Option<&ColumnInfo>
Indicates if the column is an array.
sourcepub fn time_series_measure_value_column_info(&self) -> Option<&ColumnInfo>
pub fn time_series_measure_value_column_info(&self) -> Option<&ColumnInfo>
Indicates if the column is a timeseries data type.
sourcepub fn row_column_info(&self) -> &[ColumnInfo]
pub fn row_column_info(&self) -> &[ColumnInfo]
Indicates if the column is a row.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .row_column_info.is_none()
.
Trait Implementations§
source§impl PartialEq for Type
impl PartialEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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> 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