Struct aws_sdk_lightsail::types::AutoSnapshotDetails
source · #[non_exhaustive]pub struct AutoSnapshotDetails {
pub date: Option<String>,
pub created_at: Option<DateTime>,
pub status: Option<AutoSnapshotStatus>,
pub from_attached_disks: Option<Vec<AttachedDisk>>,
}
Expand description
Describes an automatic snapshot.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.date: Option<String>
The date of the automatic snapshot in YYYY-MM-DD
format.
created_at: Option<DateTime>
The timestamp when the automatic snapshot was created.
status: Option<AutoSnapshotStatus>
The status of the automatic snapshot.
from_attached_disks: Option<Vec<AttachedDisk>>
An array of objects that describe the block storage disks attached to the instance when the automatic snapshot was created.
Implementations§
source§impl AutoSnapshotDetails
impl AutoSnapshotDetails
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The timestamp when the automatic snapshot was created.
sourcepub fn status(&self) -> Option<&AutoSnapshotStatus>
pub fn status(&self) -> Option<&AutoSnapshotStatus>
The status of the automatic snapshot.
sourcepub fn from_attached_disks(&self) -> &[AttachedDisk]
pub fn from_attached_disks(&self) -> &[AttachedDisk]
An array of objects that describe the block storage disks attached to the instance when the automatic snapshot was created.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .from_attached_disks.is_none()
.
source§impl AutoSnapshotDetails
impl AutoSnapshotDetails
sourcepub fn builder() -> AutoSnapshotDetailsBuilder
pub fn builder() -> AutoSnapshotDetailsBuilder
Creates a new builder-style object to manufacture AutoSnapshotDetails
.
Trait Implementations§
source§impl Clone for AutoSnapshotDetails
impl Clone for AutoSnapshotDetails
source§fn clone(&self) -> AutoSnapshotDetails
fn clone(&self) -> AutoSnapshotDetails
Returns a copy 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 moresource§impl Debug for AutoSnapshotDetails
impl Debug for AutoSnapshotDetails
source§impl PartialEq for AutoSnapshotDetails
impl PartialEq for AutoSnapshotDetails
source§fn eq(&self, other: &AutoSnapshotDetails) -> bool
fn eq(&self, other: &AutoSnapshotDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutoSnapshotDetails
Auto Trait Implementations§
impl Freeze for AutoSnapshotDetails
impl RefUnwindSafe for AutoSnapshotDetails
impl Send for AutoSnapshotDetails
impl Sync for AutoSnapshotDetails
impl Unpin for AutoSnapshotDetails
impl UnwindSafe for AutoSnapshotDetails
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
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.