pub struct LoggingMessageNotification {
pub params: LoggingMessageNotificationParams,
/* private fields */
}
Expand description
Notification 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": "Notification 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": [
"method",
"params"
],
"properties": {
"method": {
"type": "string",
"const": "notifications/message"
},
"params": {
"type": "object",
"required": [
"data",
"level"
],
"properties": {
"data": {
"description": "The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here."
},
"level": {
"description": "The severity of this log message.",
"$ref": "#/definitions/LoggingLevel"
},
"logger": {
"description": "An optional name of the logger issuing this message.",
"type": "string"
}
}
}
}
}
Fields§
§params: LoggingMessageNotificationParams
Implementations§
Source§impl LoggingMessageNotification
impl LoggingMessageNotification
pub fn new(params: LoggingMessageNotificationParams) -> Self
pub fn method(&self) -> &String
pub fn method_name() -> String
Trait Implementations§
Source§impl Clone for LoggingMessageNotification
impl Clone for LoggingMessageNotification
Source§fn clone(&self) -> LoggingMessageNotification
fn clone(&self) -> LoggingMessageNotification
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 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<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<LoggingMessageNotification> for MessageFromServer
impl From<LoggingMessageNotification> for MessageFromServer
Source§fn from(value: LoggingMessageNotification) -> Self
fn from(value: LoggingMessageNotification) -> Self
Converts to this type from the input type.
Source§impl From<LoggingMessageNotification> for NotificationFromServer
impl From<LoggingMessageNotification> for NotificationFromServer
Source§fn from(value: LoggingMessageNotification) -> Self
fn from(value: LoggingMessageNotification) -> 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<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 FromMessage<LoggingMessageNotification> for ServerMessage
impl FromMessage<LoggingMessageNotification> for ServerMessage
fn from_message( message: LoggingMessageNotification, request_id: Option<RequestId>, ) -> Result<Self, JsonrpcErrorError>
Source§impl ToMessage<ServerMessage> for LoggingMessageNotification
impl ToMessage<ServerMessage> for LoggingMessageNotification
fn to_message( self, request_id: Option<RequestId>, ) -> Result<ServerMessage, JsonrpcErrorError>
Source§impl TryFrom<NotificationFromServer> for LoggingMessageNotification
impl TryFrom<NotificationFromServer> for LoggingMessageNotification
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
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