pub struct TaskHint {
pub estimated_duration_secs: Option<u64>,
pub supports_progress: bool,
pub cancellable: bool,
}Expand description
Task hint
Fields§
§estimated_duration_secs: Option<u64>Estimated duration in seconds
supports_progress: boolWhether progress notifications will be sent
cancellable: boolWhether the task can be cancelled
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskHint
impl<'de> Deserialize<'de> for TaskHint
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
Auto Trait Implementations§
impl Freeze for TaskHint
impl RefUnwindSafe for TaskHint
impl Send for TaskHint
impl Sync for TaskHint
impl Unpin for TaskHint
impl UnwindSafe for TaskHint
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