Struct aws_sdk_lightsail::types::Operation
source · #[non_exhaustive]pub struct Operation {
pub id: Option<String>,
pub resource_name: Option<String>,
pub resource_type: Option<ResourceType>,
pub created_at: Option<DateTime>,
pub location: Option<ResourceLocation>,
pub is_terminal: Option<bool>,
pub operation_details: Option<String>,
pub operation_type: Option<OperationType>,
pub status: Option<OperationStatus>,
pub status_changed_at: Option<DateTime>,
pub error_code: Option<String>,
pub error_details: Option<String>,
}
Expand description
Describes the API operation.
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.id: Option<String>
The ID of the operation.
resource_name: Option<String>
The resource name.
resource_type: Option<ResourceType>
The resource type.
created_at: Option<DateTime>
The timestamp when the operation was initialized (1479816991.349
).
location: Option<ResourceLocation>
The Amazon Web Services Region and Availability Zone.
is_terminal: Option<bool>
A Boolean value indicating whether the operation is terminal.
operation_details: Option<String>
Details about the operation (Debian-1GB-Ohio-1
).
operation_type: Option<OperationType>
The type of operation.
status: Option<OperationStatus>
The status of the operation.
status_changed_at: Option<DateTime>
The timestamp when the status was changed (1479816991.349
).
error_code: Option<String>
The error code.
error_details: Option<String>
The error details.
Implementations§
source§impl Operation
impl Operation
sourcepub fn resource_name(&self) -> Option<&str>
pub fn resource_name(&self) -> Option<&str>
The resource name.
sourcepub fn resource_type(&self) -> Option<&ResourceType>
pub fn resource_type(&self) -> Option<&ResourceType>
The resource type.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The timestamp when the operation was initialized (1479816991.349
).
sourcepub fn location(&self) -> Option<&ResourceLocation>
pub fn location(&self) -> Option<&ResourceLocation>
The Amazon Web Services Region and Availability Zone.
sourcepub fn is_terminal(&self) -> Option<bool>
pub fn is_terminal(&self) -> Option<bool>
A Boolean value indicating whether the operation is terminal.
sourcepub fn operation_details(&self) -> Option<&str>
pub fn operation_details(&self) -> Option<&str>
Details about the operation (Debian-1GB-Ohio-1
).
sourcepub fn operation_type(&self) -> Option<&OperationType>
pub fn operation_type(&self) -> Option<&OperationType>
The type of operation.
sourcepub fn status(&self) -> Option<&OperationStatus>
pub fn status(&self) -> Option<&OperationStatus>
The status of the operation.
sourcepub fn status_changed_at(&self) -> Option<&DateTime>
pub fn status_changed_at(&self) -> Option<&DateTime>
The timestamp when the status was changed (1479816991.349
).
sourcepub fn error_code(&self) -> Option<&str>
pub fn error_code(&self) -> Option<&str>
The error code.
sourcepub fn error_details(&self) -> Option<&str>
pub fn error_details(&self) -> Option<&str>
The error details.
Trait Implementations§
source§impl PartialEq for Operation
impl PartialEq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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