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 ==.