#[non_exhaustive]pub struct GetQueryStateOutput {
pub error: Option<String>,
pub state: QueryStateString,
/* private fields */
}
Expand description
A structure for the output.
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.error: Option<String>
An error message when the operation fails.
state: QueryStateString
The state of a query previously submitted. The possible states are:
-
PENDING: the query is pending.
-
WORKUNITS_AVAILABLE: some work units are ready for retrieval and execution.
-
FINISHED: the query planning finished successfully, and all work units are ready for retrieval and execution.
-
ERROR: an error occurred with the query, such as an invalid query ID or a backend error.
Implementations§
source§impl GetQueryStateOutput
impl GetQueryStateOutput
sourcepub fn state(&self) -> &QueryStateString
pub fn state(&self) -> &QueryStateString
The state of a query previously submitted. The possible states are:
-
PENDING: the query is pending.
-
WORKUNITS_AVAILABLE: some work units are ready for retrieval and execution.
-
FINISHED: the query planning finished successfully, and all work units are ready for retrieval and execution.
-
ERROR: an error occurred with the query, such as an invalid query ID or a backend error.
source§impl GetQueryStateOutput
impl GetQueryStateOutput
sourcepub fn builder() -> GetQueryStateOutputBuilder
pub fn builder() -> GetQueryStateOutputBuilder
Creates a new builder-style object to manufacture GetQueryStateOutput
.
Trait Implementations§
source§impl Clone for GetQueryStateOutput
impl Clone for GetQueryStateOutput
source§fn clone(&self) -> GetQueryStateOutput
fn clone(&self) -> GetQueryStateOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetQueryStateOutput
impl Debug for GetQueryStateOutput
source§impl PartialEq for GetQueryStateOutput
impl PartialEq for GetQueryStateOutput
source§fn eq(&self, other: &GetQueryStateOutput) -> bool
fn eq(&self, other: &GetQueryStateOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetQueryStateOutput
impl RequestId for GetQueryStateOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetQueryStateOutput
Auto Trait Implementations§
impl Freeze for GetQueryStateOutput
impl RefUnwindSafe for GetQueryStateOutput
impl Send for GetQueryStateOutput
impl Sync for GetQueryStateOutput
impl Unpin for GetQueryStateOutput
impl UnwindSafe for GetQueryStateOutput
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