pub enum ServerNotification {
CancelledNotification(CancelledNotification),
ProgressNotification(ProgressNotification),
ResourceListChangedNotification(ResourceListChangedNotification),
ResourceUpdatedNotification(ResourceUpdatedNotification),
PromptListChangedNotification(PromptListChangedNotification),
ToolListChangedNotification(ToolListChangedNotification),
LoggingMessageNotification(LoggingMessageNotification),
}
Expand description
ServerNotification
JSON schema
{
"anyOf": [
{
"$ref": "#/definitions/CancelledNotification"
},
{
"$ref": "#/definitions/ProgressNotification"
},
{
"$ref": "#/definitions/ResourceListChangedNotification"
},
{
"$ref": "#/definitions/ResourceUpdatedNotification"
},
{
"$ref": "#/definitions/PromptListChangedNotification"
},
{
"$ref": "#/definitions/ToolListChangedNotification"
},
{
"$ref": "#/definitions/LoggingMessageNotification"
}
]
}
Variants§
CancelledNotification(CancelledNotification)
ProgressNotification(ProgressNotification)
ResourceListChangedNotification(ResourceListChangedNotification)
ResourceUpdatedNotification(ResourceUpdatedNotification)
PromptListChangedNotification(PromptListChangedNotification)
ToolListChangedNotification(ToolListChangedNotification)
LoggingMessageNotification(LoggingMessageNotification)
Implementations§
Trait Implementations§
Source§impl Clone for ServerNotification
impl Clone for ServerNotification
Source§fn clone(&self) -> ServerNotification
fn clone(&self) -> ServerNotification
Returns a copy 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 ServerNotification
impl Debug for ServerNotification
Source§impl<'de> Deserialize<'de> for ServerNotification
Implementing the Deserialize trait
This allows enum to be deserialized into correct type based on the value of the “method”
impl<'de> Deserialize<'de> for ServerNotification
Implementing the Deserialize trait This allows enum to be deserialized into correct type based on the value of the “method”
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<CancelledNotification> for ServerNotification
impl From<CancelledNotification> for ServerNotification
Source§fn from(value: CancelledNotification) -> Self
fn from(value: CancelledNotification) -> Self
Converts to this type from the input type.
Source§impl From<LoggingMessageNotification> for ServerNotification
impl From<LoggingMessageNotification> for ServerNotification
Source§fn from(value: LoggingMessageNotification) -> Self
fn from(value: LoggingMessageNotification) -> Self
Converts to this type from the input type.
Source§impl From<ProgressNotification> for ServerNotification
impl From<ProgressNotification> for ServerNotification
Source§fn from(value: ProgressNotification) -> Self
fn from(value: ProgressNotification) -> Self
Converts to this type from the input type.
Source§impl From<PromptListChangedNotification> for ServerNotification
impl From<PromptListChangedNotification> for ServerNotification
Source§fn from(value: PromptListChangedNotification) -> Self
fn from(value: PromptListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ResourceListChangedNotification> for ServerNotification
impl From<ResourceListChangedNotification> for ServerNotification
Source§fn from(value: ResourceListChangedNotification) -> Self
fn from(value: ResourceListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ResourceUpdatedNotification> for ServerNotification
impl From<ResourceUpdatedNotification> for ServerNotification
Source§fn from(value: ResourceUpdatedNotification) -> Self
fn from(value: ResourceUpdatedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ToolListChangedNotification> for ServerNotification
impl From<ToolListChangedNotification> for ServerNotification
Source§fn from(value: ToolListChangedNotification) -> Self
fn from(value: ToolListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl Serialize for ServerNotification
impl Serialize for ServerNotification
Auto Trait Implementations§
impl Freeze for ServerNotification
impl RefUnwindSafe for ServerNotification
impl Send for ServerNotification
impl Sync for ServerNotification
impl Unpin for ServerNotification
impl UnwindSafe for ServerNotification
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