#[non_exhaustive]pub struct DescribeLedgerOutput {
pub name: Option<String>,
pub arn: Option<String>,
pub state: Option<LedgerState>,
pub creation_date_time: Option<DateTime>,
pub permissions_mode: Option<PermissionsMode>,
pub deletion_protection: Option<bool>,
pub encryption_description: Option<LedgerEncryptionDescription>,
/* private fields */
}
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: Option<String>
The name of the ledger.
arn: Option<String>
The Amazon Resource Name (ARN) for the ledger.
state: Option<LedgerState>
The current status of the ledger.
creation_date_time: Option<DateTime>
The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
permissions_mode: Option<PermissionsMode>
The permissions mode of the ledger.
deletion_protection: Option<bool>
Specifies whether the ledger is protected from being deleted by any user. If not defined during ledger creation, this feature is enabled (true
) by default.
If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the UpdateLedger
operation to set this parameter to false
.
encryption_description: Option<LedgerEncryptionDescription>
Information about the encryption of data at rest in the ledger. This includes the current status, the KMS key, and when the key became inaccessible (in the case of an error). If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.
Implementations§
source§impl DescribeLedgerOutput
impl DescribeLedgerOutput
sourcepub fn state(&self) -> Option<&LedgerState>
pub fn state(&self) -> Option<&LedgerState>
The current status of the ledger.
sourcepub fn creation_date_time(&self) -> Option<&DateTime>
pub fn creation_date_time(&self) -> Option<&DateTime>
The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
sourcepub fn permissions_mode(&self) -> Option<&PermissionsMode>
pub fn permissions_mode(&self) -> Option<&PermissionsMode>
The permissions mode of the ledger.
sourcepub fn deletion_protection(&self) -> Option<bool>
pub fn deletion_protection(&self) -> Option<bool>
Specifies whether the ledger is protected from being deleted by any user. If not defined during ledger creation, this feature is enabled (true
) by default.
If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the UpdateLedger
operation to set this parameter to false
.
sourcepub fn encryption_description(&self) -> Option<&LedgerEncryptionDescription>
pub fn encryption_description(&self) -> Option<&LedgerEncryptionDescription>
Information about the encryption of data at rest in the ledger. This includes the current status, the KMS key, and when the key became inaccessible (in the case of an error). If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.
source§impl DescribeLedgerOutput
impl DescribeLedgerOutput
sourcepub fn builder() -> DescribeLedgerOutputBuilder
pub fn builder() -> DescribeLedgerOutputBuilder
Creates a new builder-style object to manufacture DescribeLedgerOutput
.
Trait Implementations§
source§impl Clone for DescribeLedgerOutput
impl Clone for DescribeLedgerOutput
source§fn clone(&self) -> DescribeLedgerOutput
fn clone(&self) -> DescribeLedgerOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DescribeLedgerOutput
impl Debug for DescribeLedgerOutput
source§impl PartialEq for DescribeLedgerOutput
impl PartialEq for DescribeLedgerOutput
source§fn eq(&self, other: &DescribeLedgerOutput) -> bool
fn eq(&self, other: &DescribeLedgerOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for DescribeLedgerOutput
impl RequestId for DescribeLedgerOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for DescribeLedgerOutput
Auto Trait Implementations§
impl Freeze for DescribeLedgerOutput
impl RefUnwindSafe for DescribeLedgerOutput
impl Send for DescribeLedgerOutput
impl Sync for DescribeLedgerOutput
impl Unpin for DescribeLedgerOutput
impl UnwindSafe for DescribeLedgerOutput
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