pub struct LoggingMessageNotificationParams {
pub meta: Option<NotificationMetaObject>,
pub data: Value,
pub level: LoggingLevel,
pub logger: Option<String>,
}Deprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
Expand description
Parameters for a notifications/message notification.
Fields§
§meta: Option<NotificationMetaObject>Deprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
data: ValueDeprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.
level: LoggingLevelDeprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
The severity of this log message.
logger: Option<String>Deprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
An optional name of the logger issuing this message.
Implementations§
Source§impl LoggingMessageNotificationParams
impl LoggingMessageNotificationParams
Sourcepub fn new(data: Value, level: LoggingLevel) -> LoggingMessageNotificationParams
pub fn new(data: Value, level: LoggingLevel) -> LoggingMessageNotificationParams
Creates a value from its required fields; optional fields are None.
Trait Implementations§
Source§impl Clone for LoggingMessageNotificationParams
impl Clone for LoggingMessageNotificationParams
Source§fn clone(&self) -> LoggingMessageNotificationParams
fn clone(&self) -> LoggingMessageNotificationParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more