pub struct InitializedNotification {
    pub params: Option<InitializedNotificationParams>,
    /* private fields */
}Expand description
This notification is sent from the client to the server after initialization has finished.
JSON schema
{
 "description": "This notification is sent from the client to the server after initialization has finished.",
 "type": "object",
 "required": [
   "method"
 ],
 "properties": {
   "method": {
     "type": "string",
     "const": "notifications/initialized"
   },
   "params": {
     "type": "object",
     "properties": {
       "_meta": {
         "description": "This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications.",
         "type": "object",
         "additionalProperties": {}
       }
     },
     "additionalProperties": {}
   }
 }
}Fields§
§params: Option<InitializedNotificationParams>Implementations§
Source§impl InitializedNotification
 
impl InitializedNotification
pub fn new(params: Option<InitializedNotificationParams>) -> Self
pub fn method(&self) -> &String
pub fn method_name() -> String
Trait Implementations§
Source§impl Clone for InitializedNotification
 
impl Clone for InitializedNotification
Source§fn clone(&self) -> InitializedNotification
 
fn clone(&self) -> InitializedNotification
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 InitializedNotification
 
impl Debug for InitializedNotification
Source§impl<'de> Deserialize<'de> for InitializedNotification
 
impl<'de> Deserialize<'de> for InitializedNotification
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<InitializedNotification> for ClientJsonrpcNotification
 
impl From<InitializedNotification> for ClientJsonrpcNotification
Source§fn from(value: InitializedNotification) -> Self
 
fn from(value: InitializedNotification) -> Self
Converts to this type from the input type.
Source§impl From<InitializedNotification> for ClientNotification
 
impl From<InitializedNotification> for ClientNotification
Source§fn from(value: InitializedNotification) -> Self
 
fn from(value: InitializedNotification) -> Self
Converts to this type from the input type.
Source§impl From<InitializedNotification> for MessageFromClient
 
impl From<InitializedNotification> for MessageFromClient
Source§fn from(value: InitializedNotification) -> Self
 
fn from(value: InitializedNotification) -> Self
Converts to this type from the input type.
Source§impl From<InitializedNotification> for NotificationFromClient
 
impl From<InitializedNotification> for NotificationFromClient
Source§fn from(value: InitializedNotification) -> Self
 
fn from(value: InitializedNotification) -> Self
Converts to this type from the input type.
Source§impl FromMessage<InitializedNotification> for ClientMessage
 
impl FromMessage<InitializedNotification> for ClientMessage
fn from_message( message: InitializedNotification, request_id: Option<RequestId>, ) -> Result<Self, JsonrpcErrorError>
Source§impl Serialize for InitializedNotification
 
impl Serialize for InitializedNotification
Source§impl ToMessage<ClientMessage> for InitializedNotification
 
impl ToMessage<ClientMessage> for InitializedNotification
fn to_message( self, request_id: Option<RequestId>, ) -> Result<ClientMessage, JsonrpcErrorError>
Source§impl TryFrom<NotificationFromClient> for InitializedNotification
 
impl TryFrom<NotificationFromClient> for InitializedNotification
Source§type Error = JsonrpcErrorError
 
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for InitializedNotification
impl RefUnwindSafe for InitializedNotification
impl Send for InitializedNotification
impl Sync for InitializedNotification
impl Unpin for InitializedNotification
impl UnwindSafe for InitializedNotification
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