pub struct ProgressNotification {
pub jsonrpc: JsonRpcVersion,
pub method: NotificationsProgressMethod,
pub params: ProgressNotificationParams,
}Expand description
An out-of-band notification used to inform the receiver of a progress update for a long-running request.
Fields§
§jsonrpc: JsonRpcVersion§method: NotificationsProgressMethod§params: ProgressNotificationParamsImplementations§
Source§impl ProgressNotification
impl ProgressNotification
Sourcepub fn new(params: ProgressNotificationParams) -> Self
pub fn new(params: ProgressNotificationParams) -> Self
Creates a value from its required fields; optional fields are None.
Trait Implementations§
Source§impl Clone for ProgressNotification
impl Clone for ProgressNotification
Source§impl Debug for ProgressNotification
impl Debug for ProgressNotification
Source§impl<'de> Deserialize<'de> for ProgressNotification
impl<'de> Deserialize<'de> for ProgressNotification
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 From<ProgressNotification> for ServerNotification
impl From<ProgressNotification> for ServerNotification
Source§fn from(v: ProgressNotification) -> Self
fn from(v: ProgressNotification) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProgressNotification
impl PartialEq for ProgressNotification
Source§impl Serialize for ProgressNotification
impl Serialize for ProgressNotification
impl StructuralPartialEq for ProgressNotification
Auto Trait Implementations§
impl Freeze for ProgressNotification
impl RefUnwindSafe for ProgressNotification
impl Send for ProgressNotification
impl Sync for ProgressNotification
impl Unpin for ProgressNotification
impl UnsafeUnpin for ProgressNotification
impl UnwindSafe for ProgressNotification
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