Struct aws_sdk_athena::model::QueryExecutionStatus
source · [−]#[non_exhaustive]pub struct QueryExecutionStatus {
pub state: Option<QueryExecutionState>,
pub state_change_reason: Option<String>,
pub submission_date_time: Option<DateTime>,
pub completion_date_time: Option<DateTime>,
pub athena_error: Option<AthenaError>,
}Expand description
The completion date, current state, submission time, and state change reason (if applicable) for the query execution.
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.state: Option<QueryExecutionState>The state of query execution. QUEUED indicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available. RUNNING indicates that the query is in execution phase. SUCCEEDED indicates that the query completed without errors. FAILED indicates that the query experienced an error and did not complete processing. CANCELLED indicates that a user input interrupted query execution.
Athena automatically retries your queries in cases of certain transient errors. As a result, you may see the query state transition from RUNNING or FAILED to QUEUED.
state_change_reason: Option<String>Further detail about the status of the query.
submission_date_time: Option<DateTime>The date and time that the query was submitted.
completion_date_time: Option<DateTime>The date and time that the query completed.
athena_error: Option<AthenaError>Provides information about an Athena query error.
Implementations
sourceimpl QueryExecutionStatus
impl QueryExecutionStatus
sourcepub fn state(&self) -> Option<&QueryExecutionState>
pub fn state(&self) -> Option<&QueryExecutionState>
The state of query execution. QUEUED indicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available. RUNNING indicates that the query is in execution phase. SUCCEEDED indicates that the query completed without errors. FAILED indicates that the query experienced an error and did not complete processing. CANCELLED indicates that a user input interrupted query execution.
Athena automatically retries your queries in cases of certain transient errors. As a result, you may see the query state transition from RUNNING or FAILED to QUEUED.
sourcepub fn state_change_reason(&self) -> Option<&str>
pub fn state_change_reason(&self) -> Option<&str>
Further detail about the status of the query.
sourcepub fn submission_date_time(&self) -> Option<&DateTime>
pub fn submission_date_time(&self) -> Option<&DateTime>
The date and time that the query was submitted.
sourcepub fn completion_date_time(&self) -> Option<&DateTime>
pub fn completion_date_time(&self) -> Option<&DateTime>
The date and time that the query completed.
sourcepub fn athena_error(&self) -> Option<&AthenaError>
pub fn athena_error(&self) -> Option<&AthenaError>
Provides information about an Athena query error.
sourceimpl QueryExecutionStatus
impl QueryExecutionStatus
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture QueryExecutionStatus
Trait Implementations
sourceimpl Clone for QueryExecutionStatus
impl Clone for QueryExecutionStatus
sourcefn clone(&self) -> QueryExecutionStatus
fn clone(&self) -> QueryExecutionStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for QueryExecutionStatus
impl Debug for QueryExecutionStatus
sourceimpl PartialEq<QueryExecutionStatus> for QueryExecutionStatus
impl PartialEq<QueryExecutionStatus> for QueryExecutionStatus
sourcefn eq(&self, other: &QueryExecutionStatus) -> bool
fn eq(&self, other: &QueryExecutionStatus) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &QueryExecutionStatus) -> bool
fn ne(&self, other: &QueryExecutionStatus) -> bool
This method tests for !=.
impl StructuralPartialEq for QueryExecutionStatus
Auto Trait Implementations
impl RefUnwindSafe for QueryExecutionStatus
impl Send for QueryExecutionStatus
impl Sync for QueryExecutionStatus
impl Unpin for QueryExecutionStatus
impl UnwindSafe for QueryExecutionStatus
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> 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