pub struct InitializedNotification {
pub params: Option<NotificationParams>,
/* 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": [
"jsonrpc",
"method"
],
"properties": {
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"method": {
"type": "string",
"const": "notifications/initialized"
},
"params": {
"$ref": "#/$defs/NotificationParams"
}
}
}Fields§
§params: Option<NotificationParams>Implementations§
Source§impl InitializedNotification
impl InitializedNotification
pub fn new(params: Option<NotificationParams>) -> 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/initialized”
pub fn method_name() -> &'static str
👎Deprecated since 0.8.0: Use
method_value() instead.Trait Implementations§
Source§impl Clone for InitializedNotification
impl Clone for InitializedNotification
Source§fn clone(&self) -> InitializedNotification
fn clone(&self) -> InitializedNotification
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 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 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.
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