Struct aws_sdk_athena::types::CalculationStatus
source · #[non_exhaustive]pub struct CalculationStatus {
pub submission_date_time: Option<DateTime>,
pub completion_date_time: Option<DateTime>,
pub state: Option<CalculationExecutionState>,
pub state_change_reason: Option<String>,
}Expand description
Contains information about the status of a notebook calculation.
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.submission_date_time: Option<DateTime>The date and time the calculation was submitted for processing.
completion_date_time: Option<DateTime>The date and time the calculation completed processing.
state: Option<CalculationExecutionState>The state of the calculation execution. A description of each state follows.
CREATING - The calculation is in the process of being created.
CREATED - The calculation has been created and is ready to run.
QUEUED - The calculation has been queued for processing.
RUNNING - The calculation is running.
CANCELING - A request to cancel the calculation has been received and the system is working to stop it.
CANCELED - The calculation is no longer running as the result of a cancel request.
COMPLETED - The calculation has completed without error.
FAILED - The calculation failed and is no longer running.
state_change_reason: Option<String>The reason for the calculation state change (for example, the calculation was canceled because the session was terminated).
Implementations§
source§impl CalculationStatus
impl CalculationStatus
sourcepub fn submission_date_time(&self) -> Option<&DateTime>
pub fn submission_date_time(&self) -> Option<&DateTime>
The date and time the calculation was submitted for processing.
sourcepub fn completion_date_time(&self) -> Option<&DateTime>
pub fn completion_date_time(&self) -> Option<&DateTime>
The date and time the calculation completed processing.
sourcepub fn state(&self) -> Option<&CalculationExecutionState>
pub fn state(&self) -> Option<&CalculationExecutionState>
The state of the calculation execution. A description of each state follows.
CREATING - The calculation is in the process of being created.
CREATED - The calculation has been created and is ready to run.
QUEUED - The calculation has been queued for processing.
RUNNING - The calculation is running.
CANCELING - A request to cancel the calculation has been received and the system is working to stop it.
CANCELED - The calculation is no longer running as the result of a cancel request.
COMPLETED - The calculation has completed without error.
FAILED - The calculation failed and is no longer running.
sourcepub fn state_change_reason(&self) -> Option<&str>
pub fn state_change_reason(&self) -> Option<&str>
The reason for the calculation state change (for example, the calculation was canceled because the session was terminated).
source§impl CalculationStatus
impl CalculationStatus
sourcepub fn builder() -> CalculationStatusBuilder
pub fn builder() -> CalculationStatusBuilder
Creates a new builder-style object to manufacture CalculationStatus.
Trait Implementations§
source§impl Clone for CalculationStatus
impl Clone for CalculationStatus
source§fn clone(&self) -> CalculationStatus
fn clone(&self) -> CalculationStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CalculationStatus
impl Debug for CalculationStatus
source§impl PartialEq for CalculationStatus
impl PartialEq for CalculationStatus
source§fn eq(&self, other: &CalculationStatus) -> bool
fn eq(&self, other: &CalculationStatus) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CalculationStatus
Auto Trait Implementations§
impl Freeze for CalculationStatus
impl RefUnwindSafe for CalculationStatus
impl Send for CalculationStatus
impl Sync for CalculationStatus
impl Unpin for CalculationStatus
impl UnwindSafe for CalculationStatus
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