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.
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.
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()
.