Struct aws_sdk_athena::types::TableMetadata
source · #[non_exhaustive]pub struct TableMetadata {
pub name: Option<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
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.name: Option<String>The 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 partition_keys(&self) -> Option<&[Column]>
pub fn partition_keys(&self) -> Option<&[Column]>
A list of the partition keys in the table.
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TableMetadata
impl Debug for TableMetadata
source§impl PartialEq<TableMetadata> for TableMetadata
impl PartialEq<TableMetadata> for TableMetadata
source§fn eq(&self, other: &TableMetadata) -> bool
fn eq(&self, other: &TableMetadata) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TableMetadata
Auto Trait Implementations§
impl RefUnwindSafe for TableMetadata
impl Send for TableMetadata
impl Sync for TableMetadata
impl Unpin for TableMetadata
impl UnwindSafe for TableMetadata
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