Struct aws_sdk_athena::types::TableMetadata
source · #[non_exhaustive]pub struct TableMetadata {
pub name: String,
pub create_time: Option<DateTime>,
pub last_access_time: Option<DateTime>,
pub table_type: Option<String>,
pub columns: Option<Vec<Column>>,
pub partition_keys: Option<Vec<Column>>,
pub parameters: Option<HashMap<String, String>>,
}Expand description
Contains metadata for a table.
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.name: StringThe name of the table.
create_time: Option<DateTime>The time that the table was created.
last_access_time: Option<DateTime>The last time the table was accessed.
table_type: Option<String>The type of table. In Athena, only EXTERNAL_TABLE is supported.
columns: Option<Vec<Column>>A list of the columns in the table.
partition_keys: Option<Vec<Column>>A list of the partition keys in the table.
parameters: Option<HashMap<String, String>>A set of custom key/value pairs for table properties.
Implementations§
source§impl TableMetadata
impl TableMetadata
sourcepub fn create_time(&self) -> Option<&DateTime>
pub fn create_time(&self) -> Option<&DateTime>
The time that the table was created.
sourcepub fn last_access_time(&self) -> Option<&DateTime>
pub fn last_access_time(&self) -> Option<&DateTime>
The last time the table was accessed.
sourcepub fn table_type(&self) -> Option<&str>
pub fn table_type(&self) -> Option<&str>
The type of table. In Athena, only EXTERNAL_TABLE is supported.
sourcepub fn columns(&self) -> &[Column]
pub fn columns(&self) -> &[Column]
A list of the columns in the table.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .columns.is_none().
sourcepub fn partition_keys(&self) -> &[Column]
pub fn partition_keys(&self) -> &[Column]
A list of the partition keys in the table.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .partition_keys.is_none().
source§impl TableMetadata
impl TableMetadata
sourcepub fn builder() -> TableMetadataBuilder
pub fn builder() -> TableMetadataBuilder
Creates a new builder-style object to manufacture TableMetadata.
Trait Implementations§
source§impl Clone for TableMetadata
impl Clone for TableMetadata
source§fn clone(&self) -> TableMetadata
fn clone(&self) -> TableMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TableMetadata
impl Debug for TableMetadata
source§impl PartialEq for TableMetadata
impl PartialEq for TableMetadata
source§fn eq(&self, other: &TableMetadata) -> bool
fn eq(&self, other: &TableMetadata) -> bool
self and other values to be equal, and is used
by ==.