#[non_exhaustive]pub struct LoggingMessageNotificationParam {
pub level: LoggingLevel,
pub logger: Option<String>,
pub data: Value,
pub meta: Option<NotificationMetaObject>,
}Logging is deprecated by SEP-2577 and will be removed in a future release. See https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2577
Expand description
Parameters for a logging message notification
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.level: LoggingLevelLogging is deprecated by SEP-2577 and will be removed in a future release. See https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2577
The severity level of this log message
logger: Option<String>Logging is deprecated by SEP-2577 and will be removed in a future release. See https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2577
Optional logger name that generated this message
data: ValueLogging is deprecated by SEP-2577 and will be removed in a future release. See https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2577
The actual log data
meta: Option<NotificationMetaObject>Logging is deprecated by SEP-2577 and will be removed in a future release. See https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2577
Implementations§
Source§impl LoggingMessageNotificationParam
impl LoggingMessageNotificationParam
Sourcepub fn new(level: LoggingLevel, data: Value) -> Self
pub fn new(level: LoggingLevel, data: Value) -> Self
Create a new LoggingMessageNotificationParam.
Sourcepub fn with_logger(self, logger: impl Into<String>) -> Self
pub fn with_logger(self, logger: impl Into<String>) -> Self
Set the logger name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LoggingMessageNotificationParam
impl<'de> Deserialize<'de> for LoggingMessageNotificationParam
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>,
Source§impl JsonSchema for LoggingMessageNotificationParam
Available on crate feature schemars only.
impl JsonSchema for LoggingMessageNotificationParam
schemars only.Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more