Struct aws_sdk_lightsail::model::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 (e.g., 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 (e.g., 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 (e.g., 1479816991.349
).
error_code: Option<String>
The error code.
error_details: Option<String>
The error details.
Implementations
sourceimpl 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 (e.g., 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 (e.g., 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 (e.g., 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
impl StructuralPartialEq for Operation
Auto Trait Implementations
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more