pub struct OperationProgress {
pub done: u64,
pub total: u64,
pub percent: u8,
pub note: String,
}Expand description
How far an operation got.
Fields§
§done: u64Units done.
total: u64Units in all (0 when unknown).
percent: u8done as a whole percentage of total (0 when total is 0).
note: StringWhat the operation is doing, for people.
Trait Implementations§
Source§impl Clone for OperationProgress
impl Clone for OperationProgress
Source§impl Debug for OperationProgress
impl Debug for OperationProgress
Source§impl Default for OperationProgress
impl Default for OperationProgress
Source§impl<'de> Deserialize<'de> for OperationProgress
impl<'de> Deserialize<'de> for OperationProgress
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
impl Eq for OperationProgress
Source§impl PartialEq for OperationProgress
impl PartialEq for OperationProgress
Source§impl Serialize for OperationProgress
impl Serialize for OperationProgress
impl StructuralPartialEq for OperationProgress
Source§impl ToSchema for OperationProgress
impl ToSchema for OperationProgress
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 OperationProgress
impl Freeze for OperationProgress
impl Move for OperationProgress
impl RefUnwindSafe for OperationProgress
impl Send for OperationProgress
impl Sync for OperationProgress
impl Unpin for OperationProgress
impl UnsafeUnpin for OperationProgress
impl UnwindSafe for OperationProgress
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.