pub struct ProgressParams {
pub progress_token: ProgressToken,
pub progress: f32,
pub total: Option<f32>,
pub message: Option<String>,
}
Expand description
Parameters for progress notification
Fieldsยง
ยงprogress_token: ProgressToken
Progress token from original request
progress: f32
Current progress value
total: Option<f32>
Total progress expected
message: Option<String>
Optional progress message
Trait Implementationsยง
Sourceยงimpl Clone for ProgressParams
impl Clone for ProgressParams
Sourceยงfn clone(&self) -> ProgressParams
fn clone(&self) -> ProgressParams
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSourceยงimpl Debug for ProgressParams
impl Debug for ProgressParams
Sourceยงimpl<'de> Deserialize<'de> for ProgressParams
impl<'de> Deserialize<'de> for ProgressParams
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 PartialEq for ProgressParams
impl PartialEq for ProgressParams
Sourceยงimpl Serialize for ProgressParams
impl Serialize for ProgressParams
impl StructuralPartialEq for ProgressParams
Auto Trait Implementationsยง
impl Freeze for ProgressParams
impl RefUnwindSafe for ProgressParams
impl Send for ProgressParams
impl Sync for ProgressParams
impl Unpin for ProgressParams
impl UnwindSafe for ProgressParams
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