pub struct LoggingMessageNotification {
pub params: LoggingMessageNotificationParams,
/* private fields */
}Expand description
JSONRPCNotification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically.
JSON schema
{
"description": "JSONRPCNotification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically.",
"type": "object",
"required": [
"jsonrpc",
"method",
"params"
],
"properties": {
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"method": {
"type": "string",
"const": "notifications/message"
},
"params": {
"$ref": "#/$defs/LoggingMessageNotificationParams"
}
}
}Fields§
§params: LoggingMessageNotificationParamsImplementations§
Source§impl LoggingMessageNotification
impl LoggingMessageNotification
pub fn new( params: LoggingMessageNotificationParams, ) -> LoggingMessageNotification
pub fn jsonrpc(&self) -> &String
pub fn method(&self) -> &String
Sourcepub fn method_value() -> &'static str
pub fn method_value() -> &'static str
returns “notifications/message”
pub fn method_name() -> &'static str
👎Deprecated since 0.8.0: Use
method_value() instead.Trait Implementations§
Source§impl Clone for LoggingMessageNotification
impl Clone for LoggingMessageNotification
Source§fn clone(&self) -> LoggingMessageNotification
fn clone(&self) -> LoggingMessageNotification
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 LoggingMessageNotification
impl Debug for LoggingMessageNotification
Source§impl<'de> Deserialize<'de> for LoggingMessageNotification
impl<'de> Deserialize<'de> for LoggingMessageNotification
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LoggingMessageNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LoggingMessageNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<LoggingMessageNotification> for ServerNotification
impl From<LoggingMessageNotification> for ServerNotification
Source§fn from(value: LoggingMessageNotification) -> ServerNotification
fn from(value: LoggingMessageNotification) -> ServerNotification
Converts to this type from the input type.
Source§impl Serialize for LoggingMessageNotification
impl Serialize for LoggingMessageNotification
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for LoggingMessageNotification
impl RefUnwindSafe for LoggingMessageNotification
impl Send for LoggingMessageNotification
impl Sync for LoggingMessageNotification
impl Unpin for LoggingMessageNotification
impl UnwindSafe for LoggingMessageNotification
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