pub struct TaskStatusNotification {
pub params: TaskStatusNotificationParams,
/* private fields */
}Expand description
An optional notification from the receiver to the requestor, informing them that a task’s status has changed. Receivers are not required to send these notifications.
JSON schema
{
"description": "An optional notification from the receiver to the requestor, informing them that a task's status has changed. Receivers are not required to send these notifications.",
"type": "object",
"required": [
"jsonrpc",
"method",
"params"
],
"properties": {
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"method": {
"type": "string",
"const": "notifications/tasks/status"
},
"params": {
"$ref": "#/$defs/TaskStatusNotificationParams"
}
}
}Fields§
§params: TaskStatusNotificationParamsImplementations§
Source§impl TaskStatusNotification
impl TaskStatusNotification
pub fn new(params: TaskStatusNotificationParams) -> Self
pub fn jsonrpc(&self) -> &String
pub fn method(&self) -> &String
Sourcepub fn method_value() -> String
pub fn method_value() -> String
returns “notifications/tasks/status”
pub fn method_name() -> String
👎Deprecated since 0.8.0: Use
method_value() instead.Trait Implementations§
Source§impl Clone for TaskStatusNotification
impl Clone for TaskStatusNotification
Source§fn clone(&self) -> TaskStatusNotification
fn clone(&self) -> TaskStatusNotification
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 TaskStatusNotification
impl Debug for TaskStatusNotification
Source§impl<'de> Deserialize<'de> for TaskStatusNotification
impl<'de> Deserialize<'de> for TaskStatusNotification
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<TaskStatusNotification> for ClientJsonrpcNotification
impl From<TaskStatusNotification> for ClientJsonrpcNotification
Source§fn from(value: TaskStatusNotification) -> Self
fn from(value: TaskStatusNotification) -> Self
Converts to this type from the input type.
Source§impl From<TaskStatusNotification> for ClientNotification
impl From<TaskStatusNotification> for ClientNotification
Source§fn from(value: TaskStatusNotification) -> Self
fn from(value: TaskStatusNotification) -> Self
Converts to this type from the input type.
Source§impl From<TaskStatusNotification> for MessageFromClient
impl From<TaskStatusNotification> for MessageFromClient
Source§fn from(value: TaskStatusNotification) -> Self
fn from(value: TaskStatusNotification) -> Self
Converts to this type from the input type.
Source§impl From<TaskStatusNotification> for MessageFromServer
impl From<TaskStatusNotification> for MessageFromServer
Source§fn from(value: TaskStatusNotification) -> Self
fn from(value: TaskStatusNotification) -> Self
Converts to this type from the input type.
Source§impl From<TaskStatusNotification> for NotificationFromClient
impl From<TaskStatusNotification> for NotificationFromClient
Source§fn from(value: TaskStatusNotification) -> Self
fn from(value: TaskStatusNotification) -> Self
Converts to this type from the input type.
Source§impl From<TaskStatusNotification> for NotificationFromServer
impl From<TaskStatusNotification> for NotificationFromServer
Source§fn from(value: TaskStatusNotification) -> Self
fn from(value: TaskStatusNotification) -> Self
Converts to this type from the input type.
Source§impl From<TaskStatusNotification> for ServerJsonrpcNotification
impl From<TaskStatusNotification> for ServerJsonrpcNotification
Source§fn from(value: TaskStatusNotification) -> Self
fn from(value: TaskStatusNotification) -> Self
Converts to this type from the input type.
Source§impl From<TaskStatusNotification> for ServerNotification
impl From<TaskStatusNotification> for ServerNotification
Source§fn from(value: TaskStatusNotification) -> Self
fn from(value: TaskStatusNotification) -> Self
Converts to this type from the input type.
Source§impl FromMessage<TaskStatusNotification> for ClientMessage
impl FromMessage<TaskStatusNotification> for ClientMessage
fn from_message( message: TaskStatusNotification, request_id: Option<RequestId>, ) -> Result<Self, RpcError>
Source§impl FromMessage<TaskStatusNotification> for ServerMessage
impl FromMessage<TaskStatusNotification> for ServerMessage
fn from_message( message: TaskStatusNotification, request_id: Option<RequestId>, ) -> Result<Self, RpcError>
Source§impl Serialize for TaskStatusNotification
impl Serialize for TaskStatusNotification
Source§impl ToMessage<ClientMessage> for TaskStatusNotification
impl ToMessage<ClientMessage> for TaskStatusNotification
fn to_message( self, request_id: Option<RequestId>, ) -> Result<ClientMessage, RpcError>
Source§impl ToMessage<ServerMessage> for TaskStatusNotification
impl ToMessage<ServerMessage> for TaskStatusNotification
fn to_message( self, request_id: Option<RequestId>, ) -> Result<ServerMessage, RpcError>
Auto Trait Implementations§
impl Freeze for TaskStatusNotification
impl RefUnwindSafe for TaskStatusNotification
impl Send for TaskStatusNotification
impl Sync for TaskStatusNotification
impl Unpin for TaskStatusNotification
impl UnwindSafe for TaskStatusNotification
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