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() -> &'static str
pub fn method_value() -> &'static str
returns “notifications/tasks/status”
pub fn method_name() -> &'static str
👎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 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 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.
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