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 ==.impl StructuralPartialEq for TableMetadata
Auto Trait Implementations§
impl Freeze for TableMetadata
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
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