#[non_exhaustive]pub enum OperationStatus {
Pending,
Running,
Succeeded,
Failed,
Cancelled,
}Expand description
Where an operation is.
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.
Pending
Started, waiting for its work to begin.
Running
Its work is running.
Succeeded
It finished; result may hold what it produced.
Failed
It failed; error says why.
Cancelled
It was cancelled.
Implementations§
Trait Implementations§
Source§impl Clone for OperationStatus
impl Clone for OperationStatus
impl Copy for OperationStatus
Source§impl Debug for OperationStatus
impl Debug for OperationStatus
Source§impl<'de> Deserialize<'de> for OperationStatus
impl<'de> Deserialize<'de> for OperationStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OperationStatus
impl Display for OperationStatus
impl Eq for OperationStatus
Source§impl Hash for OperationStatus
impl Hash for OperationStatus
Source§impl PartialEq for OperationStatus
impl PartialEq for OperationStatus
Source§impl Serialize for OperationStatus
impl Serialize for OperationStatus
impl StructuralPartialEq for OperationStatus
Source§impl ToSchema for OperationStatus
impl ToSchema for OperationStatus
Source§fn name() -> Cow<'static, str>
fn name() -> Cow<'static, str>
The name of the type’s component schema: the last segment of its Rust
path unless
#[schema(as = Name)] says otherwise, followed by the names
of its generic arguments (Page<Note> is Page_Note).Source§fn reference() -> Schema
fn reference() -> Schema
What a field or an element of this type says: a
$ref to the component,
or for a type with no component of its own (String, Vec<T>) its
schema.Source§fn components(out: &mut Vec<(String, Schema)>)
fn components(out: &mut Vec<(String, Schema)>)
Adds the component schemas
reference refers to:
this type’s and what it refers to. A type already in out isn’t walked
again, so a type that contains itself ends. Another type of the same name
is walked as well, even with the same schema, since what its $refs mean
may differ: a different schema of one name goes in beside the first, for
the document to refuse.Auto Trait Implementations§
impl Forget for OperationStatus
impl Freeze for OperationStatus
impl Move for OperationStatus
impl RefUnwindSafe for OperationStatus
impl Send for OperationStatus
impl Sync for OperationStatus
impl Unpin for OperationStatus
impl UnsafeUnpin for OperationStatus
impl UnwindSafe for OperationStatus
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,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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§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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ValueFor<Option<T>> for T
impl<T> ValueFor<Option<T>> for T
Source§fn into_value_for(self) -> Option<T>
fn into_value_for(self) -> Option<T>
The value as the column’s type.