pub struct ServerJsonrpcNotification {
pub method: String,
pub notification: NotificationFromServer,
/* private fields */
}
Expand description
“Similar to JsonrpcNotification , but with the variants restricted to server-side notifications.”
Fields§
§method: String
§notification: NotificationFromServer
Implementations§
Trait Implementations§
Source§impl Clone for ServerJsonrpcNotification
impl Clone for ServerJsonrpcNotification
Source§fn clone(&self) -> ServerJsonrpcNotification
fn clone(&self) -> ServerJsonrpcNotification
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServerJsonrpcNotification
impl Debug for ServerJsonrpcNotification
Source§impl<'de> Deserialize<'de> for ServerJsonrpcNotification
impl<'de> Deserialize<'de> for ServerJsonrpcNotification
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 Display for ServerJsonrpcNotification
Formats the ServerJsonrpcNotification as a JSON string.
impl Display for ServerJsonrpcNotification
Formats the ServerJsonrpcNotification as a JSON string.
Source§impl From<CancelledNotification> for ServerJsonrpcNotification
impl From<CancelledNotification> for ServerJsonrpcNotification
Source§fn from(value: CancelledNotification) -> Self
fn from(value: CancelledNotification) -> Self
Converts to this type from the input type.
Source§impl From<LoggingMessageNotification> for ServerJsonrpcNotification
impl From<LoggingMessageNotification> for ServerJsonrpcNotification
Source§fn from(value: LoggingMessageNotification) -> Self
fn from(value: LoggingMessageNotification) -> Self
Converts to this type from the input type.
Source§impl From<ProgressNotification> for ServerJsonrpcNotification
impl From<ProgressNotification> for ServerJsonrpcNotification
Source§fn from(value: ProgressNotification) -> Self
fn from(value: ProgressNotification) -> Self
Converts to this type from the input type.
Source§impl From<PromptListChangedNotification> for ServerJsonrpcNotification
impl From<PromptListChangedNotification> for ServerJsonrpcNotification
Source§fn from(value: PromptListChangedNotification) -> Self
fn from(value: PromptListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ResourceListChangedNotification> for ServerJsonrpcNotification
impl From<ResourceListChangedNotification> for ServerJsonrpcNotification
Source§fn from(value: ResourceListChangedNotification) -> Self
fn from(value: ResourceListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ResourceUpdatedNotification> for ServerJsonrpcNotification
impl From<ResourceUpdatedNotification> for ServerJsonrpcNotification
Source§fn from(value: ResourceUpdatedNotification) -> Self
fn from(value: ResourceUpdatedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ToolListChangedNotification> for ServerJsonrpcNotification
impl From<ToolListChangedNotification> for ServerJsonrpcNotification
Source§fn from(value: ToolListChangedNotification) -> Self
fn from(value: ToolListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl FromStr for ServerJsonrpcNotification
impl FromStr for ServerJsonrpcNotification
Auto Trait Implementations§
impl Freeze for ServerJsonrpcNotification
impl RefUnwindSafe for ServerJsonrpcNotification
impl Send for ServerJsonrpcNotification
impl Sync for ServerJsonrpcNotification
impl Unpin for ServerJsonrpcNotification
impl UnwindSafe for ServerJsonrpcNotification
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