pub struct DdbTable {Show 23 fields
pub name: String,
pub table_arn: String,
pub table_id: String,
pub status: String,
pub partition_key: String,
pub sort_key: String,
pub read_capacity_mode: String,
pub write_capacity_mode: String,
pub provisioned_read_units: i64,
pub provisioned_write_units: i64,
pub table_class: String,
pub deletion_protection: String,
pub total_size_bytes: i64,
pub item_count: i64,
pub creation_time: String,
pub encryption_type: String,
pub kms_key_arn: String,
pub stream_enabled: String,
pub stream_view_type: String,
pub latest_stream_arn: String,
pub global_secondary_indexes: Vec<DdbIndex>,
pub local_secondary_indexes: Vec<DdbIndex>,
pub replicas: Vec<DdbReplica>,
}Expand description
A DynamoDB table, flattened for display.
Fields§
§name: String§table_arn: String§table_id: String§status: StringTable status (ACTIVE, CREATING, …).
partition_key: StringPartition (HASH) key, e.g. “id (S)”.
sort_key: StringSort (RANGE) key, or empty when the table has none.
read_capacity_mode: String“On-demand” or “Provisioned”.
write_capacity_mode: String§provisioned_read_units: i64Provisioned units (0 for on-demand tables).
provisioned_write_units: i64§table_class: String“Standard” or “Standard-IA”.
deletion_protection: String“Enabled” / “Disabled”.
total_size_bytes: i64§item_count: i64§creation_time: String§encryption_type: StringServer-side encryption type (“Owned by Amazon DynamoDB”, “AWS managed key”, …).
kms_key_arn: String§stream_enabled: String“Enabled” / “Disabled” for DynamoDB Streams.
stream_view_type: String§latest_stream_arn: String§global_secondary_indexes: Vec<DdbIndex>§local_secondary_indexes: Vec<DdbIndex>§replicas: Vec<DdbReplica>Implementations§
Source§impl DdbTable
impl DdbTable
Sourcepub fn index_count(&self) -> usize
pub fn index_count(&self) -> usize
Total number of secondary indexes (global + local).
Sourcepub fn replication_regions(&self) -> String
pub fn replication_regions(&self) -> String
Comma-separated global-table replica regions (“” when not a global table).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DdbTable
impl RefUnwindSafe for DdbTable
impl Send for DdbTable
impl Sync for DdbTable
impl Unpin for DdbTable
impl UnsafeUnpin for DdbTable
impl UnwindSafe for DdbTable
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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 moreCreates a shared type from an unshared type.