pub struct DynamoTable {Show 20 fields
pub name: String,
pub arn: String,
pub key_schema: Vec<KeySchemaElement>,
pub attribute_definitions: Vec<AttributeDefinition>,
pub provisioned_throughput: ProvisionedThroughput,
pub items: Vec<HashMap<String, AttributeValue>>,
pub gsi: Vec<GlobalSecondaryIndex>,
pub lsi: Vec<LocalSecondaryIndex>,
pub tags: HashMap<String, String>,
pub created_at: DateTime<Utc>,
pub status: String,
pub item_count: i64,
pub size_bytes: i64,
pub billing_mode: String,
pub ttl_attribute: Option<String>,
pub ttl_enabled: bool,
pub resource_policy: Option<String>,
pub pitr_enabled: bool,
pub kinesis_destinations: Vec<KinesisDestination>,
pub contributor_insights_status: String,
}Fields§
§name: String§arn: String§key_schema: Vec<KeySchemaElement>§attribute_definitions: Vec<AttributeDefinition>§provisioned_throughput: ProvisionedThroughput§items: Vec<HashMap<String, AttributeValue>>§gsi: Vec<GlobalSecondaryIndex>§lsi: Vec<LocalSecondaryIndex>§created_at: DateTime<Utc>§status: String§item_count: i64§size_bytes: i64§billing_mode: String§ttl_attribute: Option<String>§ttl_enabled: bool§resource_policy: Option<String>§pitr_enabled: boolPITR enabled
kinesis_destinations: Vec<KinesisDestination>Kinesis streaming destinations: stream_arn -> status
contributor_insights_status: StringContributor insights status
Implementations§
Source§impl DynamoTable
impl DynamoTable
Sourcepub fn hash_key_name(&self) -> &str
pub fn hash_key_name(&self) -> &str
Get the hash key attribute name from the key schema.
Sourcepub fn range_key_name(&self) -> Option<&str>
pub fn range_key_name(&self) -> Option<&str>
Get the range key attribute name from the key schema (if any).
Sourcepub fn find_item_index(
&self,
key: &HashMap<String, AttributeValue>,
) -> Option<usize>
pub fn find_item_index( &self, key: &HashMap<String, AttributeValue>, ) -> Option<usize>
Find an item index by its primary key.
Sourcepub fn recalculate_stats(&mut self)
pub fn recalculate_stats(&mut self)
Recalculate item_count and size_bytes from the items vec.
Trait Implementations§
Source§impl Clone for DynamoTable
impl Clone for DynamoTable
Source§fn clone(&self) -> DynamoTable
fn clone(&self) -> DynamoTable
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DynamoTable
impl RefUnwindSafe for DynamoTable
impl Send for DynamoTable
impl Sync for DynamoTable
impl Unpin for DynamoTable
impl UnsafeUnpin for DynamoTable
impl UnwindSafe for DynamoTable
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