#[non_exhaustive]pub enum OperationState {
Waiting,
Queued,
Running,
Completed,
Failed,
Cancelled,
Unknown(String),
}Expand description
The state of a document operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Waiting
waiting
Queued
queued
Running
running
Completed
completed
Failed
failed
Cancelled
cancelled
Unknown(String)
A value this version of the SDK does not know, kept as sent.
Implementations§
Source§impl OperationState
impl OperationState
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Whether the operation has finished: completed, failed, or
cancelled (state cancelled, also accepted as canceled).
Trait Implementations§
Source§impl Clone for OperationState
impl Clone for OperationState
Source§impl Debug for OperationState
impl Debug for OperationState
Source§impl Default for OperationState
impl Default for OperationState
Source§impl<'de> Deserialize<'de> for OperationState
impl<'de> Deserialize<'de> for OperationState
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OperationState
impl Display for OperationState
impl Eq for OperationState
Source§impl From<&str> for OperationState
impl From<&str> for OperationState
Source§impl From<String> for OperationState
impl From<String> for OperationState
Source§impl FromStr for OperationState
impl FromStr for OperationState
Source§impl Hash for OperationState
impl Hash for OperationState
Source§impl Ord for OperationState
impl Ord for OperationState
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OperationState
impl PartialEq for OperationState
Source§impl PartialOrd for OperationState
impl PartialOrd for OperationState
Source§impl Serialize for OperationState
impl Serialize for OperationState
impl StructuralPartialEq for OperationState
Auto Trait Implementations§
impl Forget for OperationState
impl Freeze for OperationState
impl Move for OperationState
impl RefUnwindSafe for OperationState
impl Send for OperationState
impl Sync for OperationState
impl Unpin for OperationState
impl UnsafeUnpin for OperationState
impl UnwindSafe for OperationState
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.