#[non_exhaustive]pub struct AwsDynamoDbTableDetails {Show 20 fields
pub attribute_definitions: Option<Vec<AwsDynamoDbTableAttributeDefinition>>,
pub billing_mode_summary: Option<AwsDynamoDbTableBillingModeSummary>,
pub creation_date_time: Option<String>,
pub global_secondary_indexes: Option<Vec<AwsDynamoDbTableGlobalSecondaryIndex>>,
pub global_table_version: Option<String>,
pub item_count: Option<i32>,
pub key_schema: Option<Vec<AwsDynamoDbTableKeySchema>>,
pub latest_stream_arn: Option<String>,
pub latest_stream_label: Option<String>,
pub local_secondary_indexes: Option<Vec<AwsDynamoDbTableLocalSecondaryIndex>>,
pub provisioned_throughput: Option<AwsDynamoDbTableProvisionedThroughput>,
pub replicas: Option<Vec<AwsDynamoDbTableReplica>>,
pub restore_summary: Option<AwsDynamoDbTableRestoreSummary>,
pub sse_description: Option<AwsDynamoDbTableSseDescription>,
pub stream_specification: Option<AwsDynamoDbTableStreamSpecification>,
pub table_id: Option<String>,
pub table_name: Option<String>,
pub table_size_bytes: Option<i64>,
pub table_status: Option<String>,
pub deletion_protection_enabled: Option<bool>,
}
Expand description
Provides details about a DynamoDB 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.attribute_definitions: Option<Vec<AwsDynamoDbTableAttributeDefinition>>
A list of attribute definitions for the table.
billing_mode_summary: Option<AwsDynamoDbTableBillingModeSummary>
Information about the billing for read/write capacity on the table.
creation_date_time: Option<String>
Indicates when the table was created.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
global_secondary_indexes: Option<Vec<AwsDynamoDbTableGlobalSecondaryIndex>>
List of global secondary indexes for the table.
global_table_version: Option<String>
The version of global tables being used.
item_count: Option<i32>
The number of items in the table.
key_schema: Option<Vec<AwsDynamoDbTableKeySchema>>
The primary key structure for the table.
latest_stream_arn: Option<String>
The ARN of the latest stream for the table.
latest_stream_label: Option<String>
The label of the latest stream. The label is not a unique identifier.
local_secondary_indexes: Option<Vec<AwsDynamoDbTableLocalSecondaryIndex>>
The list of local secondary indexes for the table.
provisioned_throughput: Option<AwsDynamoDbTableProvisionedThroughput>
Information about the provisioned throughput for the table.
replicas: Option<Vec<AwsDynamoDbTableReplica>>
The list of replicas of this table.
restore_summary: Option<AwsDynamoDbTableRestoreSummary>
Information about the restore for the table.
sse_description: Option<AwsDynamoDbTableSseDescription>
Information about the server-side encryption for the table.
stream_specification: Option<AwsDynamoDbTableStreamSpecification>
The current DynamoDB Streams configuration for the table.
table_id: Option<String>
The identifier of the table.
table_name: Option<String>
The name of the table.
table_size_bytes: Option<i64>
The total size of the table in bytes.
table_status: Option<String>
The current status of the table. Valid values are as follows:
-
ACTIVE
-
ARCHIVED
-
ARCHIVING
-
CREATING
-
DELETING
-
INACCESSIBLE_ENCRYPTION_CREDENTIALS
-
UPDATING
deletion_protection_enabled: Option<bool>
Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.
Implementations§
Source§impl AwsDynamoDbTableDetails
impl AwsDynamoDbTableDetails
Sourcepub fn attribute_definitions(&self) -> &[AwsDynamoDbTableAttributeDefinition]
pub fn attribute_definitions(&self) -> &[AwsDynamoDbTableAttributeDefinition]
A list of attribute definitions for 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 .attribute_definitions.is_none()
.
Sourcepub fn billing_mode_summary(
&self,
) -> Option<&AwsDynamoDbTableBillingModeSummary>
pub fn billing_mode_summary( &self, ) -> Option<&AwsDynamoDbTableBillingModeSummary>
Information about the billing for read/write capacity on the table.
Sourcepub fn creation_date_time(&self) -> Option<&str>
pub fn creation_date_time(&self) -> Option<&str>
Indicates when the table was created.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
Sourcepub fn global_secondary_indexes(
&self,
) -> &[AwsDynamoDbTableGlobalSecondaryIndex]
pub fn global_secondary_indexes( &self, ) -> &[AwsDynamoDbTableGlobalSecondaryIndex]
List of global secondary indexes for 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 .global_secondary_indexes.is_none()
.
Sourcepub fn global_table_version(&self) -> Option<&str>
pub fn global_table_version(&self) -> Option<&str>
The version of global tables being used.
Sourcepub fn item_count(&self) -> Option<i32>
pub fn item_count(&self) -> Option<i32>
The number of items in the table.
Sourcepub fn key_schema(&self) -> &[AwsDynamoDbTableKeySchema]
pub fn key_schema(&self) -> &[AwsDynamoDbTableKeySchema]
The primary key structure for 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 .key_schema.is_none()
.
Sourcepub fn latest_stream_arn(&self) -> Option<&str>
pub fn latest_stream_arn(&self) -> Option<&str>
The ARN of the latest stream for the table.
Sourcepub fn latest_stream_label(&self) -> Option<&str>
pub fn latest_stream_label(&self) -> Option<&str>
The label of the latest stream. The label is not a unique identifier.
Sourcepub fn local_secondary_indexes(&self) -> &[AwsDynamoDbTableLocalSecondaryIndex]
pub fn local_secondary_indexes(&self) -> &[AwsDynamoDbTableLocalSecondaryIndex]
The list of local secondary indexes for 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 .local_secondary_indexes.is_none()
.
Sourcepub fn provisioned_throughput(
&self,
) -> Option<&AwsDynamoDbTableProvisionedThroughput>
pub fn provisioned_throughput( &self, ) -> Option<&AwsDynamoDbTableProvisionedThroughput>
Information about the provisioned throughput for the table.
Sourcepub fn replicas(&self) -> &[AwsDynamoDbTableReplica]
pub fn replicas(&self) -> &[AwsDynamoDbTableReplica]
The list of replicas of this 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 .replicas.is_none()
.
Sourcepub fn restore_summary(&self) -> Option<&AwsDynamoDbTableRestoreSummary>
pub fn restore_summary(&self) -> Option<&AwsDynamoDbTableRestoreSummary>
Information about the restore for the table.
Sourcepub fn sse_description(&self) -> Option<&AwsDynamoDbTableSseDescription>
pub fn sse_description(&self) -> Option<&AwsDynamoDbTableSseDescription>
Information about the server-side encryption for the table.
Sourcepub fn stream_specification(
&self,
) -> Option<&AwsDynamoDbTableStreamSpecification>
pub fn stream_specification( &self, ) -> Option<&AwsDynamoDbTableStreamSpecification>
The current DynamoDB Streams configuration for the table.
Sourcepub fn table_name(&self) -> Option<&str>
pub fn table_name(&self) -> Option<&str>
The name of the table.
Sourcepub fn table_size_bytes(&self) -> Option<i64>
pub fn table_size_bytes(&self) -> Option<i64>
The total size of the table in bytes.
Sourcepub fn table_status(&self) -> Option<&str>
pub fn table_status(&self) -> Option<&str>
The current status of the table. Valid values are as follows:
-
ACTIVE
-
ARCHIVED
-
ARCHIVING
-
CREATING
-
DELETING
-
INACCESSIBLE_ENCRYPTION_CREDENTIALS
-
UPDATING
Sourcepub fn deletion_protection_enabled(&self) -> Option<bool>
pub fn deletion_protection_enabled(&self) -> Option<bool>
Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.
Source§impl AwsDynamoDbTableDetails
impl AwsDynamoDbTableDetails
Sourcepub fn builder() -> AwsDynamoDbTableDetailsBuilder
pub fn builder() -> AwsDynamoDbTableDetailsBuilder
Creates a new builder-style object to manufacture AwsDynamoDbTableDetails
.
Trait Implementations§
Source§impl Clone for AwsDynamoDbTableDetails
impl Clone for AwsDynamoDbTableDetails
Source§fn clone(&self) -> AwsDynamoDbTableDetails
fn clone(&self) -> AwsDynamoDbTableDetails
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AwsDynamoDbTableDetails
impl Debug for AwsDynamoDbTableDetails
Source§impl PartialEq for AwsDynamoDbTableDetails
impl PartialEq for AwsDynamoDbTableDetails
impl StructuralPartialEq for AwsDynamoDbTableDetails
Auto Trait Implementations§
impl Freeze for AwsDynamoDbTableDetails
impl RefUnwindSafe for AwsDynamoDbTableDetails
impl Send for AwsDynamoDbTableDetails
impl Sync for AwsDynamoDbTableDetails
impl Unpin for AwsDynamoDbTableDetails
impl UnwindSafe for AwsDynamoDbTableDetails
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> 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>
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);