pub struct McpLoggingMessageNotificationParam {
pub level: LoggingLevel,
pub logger: Option<String>,
pub data: Value,
}Expand description
Re-exports of the rmcp wire-protocol types this crate now surfaces directly instead of wrapping. Pull these in to pattern-match on tool annotations, content blocks, structured tool output, embedded resources, sampling / elicitation requests, progress and log notifications, etc. Parameters for a logging message notification
Fields§
§level: LoggingLevelThe severity level of this log message
logger: Option<String>Optional logger name that generated this message
data: ValueThe actual log data
Implementations§
Source§impl LoggingMessageNotificationParam
impl LoggingMessageNotificationParam
Sourcepub fn new(level: LoggingLevel, data: Value) -> LoggingMessageNotificationParam
pub fn new(level: LoggingLevel, data: Value) -> LoggingMessageNotificationParam
Create a new LoggingMessageNotificationParam.
Sourcepub fn with_logger(
self,
logger: impl Into<String>,
) -> LoggingMessageNotificationParam
pub fn with_logger( self, logger: impl Into<String>, ) -> LoggingMessageNotificationParam
Set the logger name.
Trait Implementations§
Source§impl Clone for LoggingMessageNotificationParam
impl Clone for LoggingMessageNotificationParam
Source§fn clone(&self) -> LoggingMessageNotificationParam
fn clone(&self) -> LoggingMessageNotificationParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for LoggingMessageNotificationParam
impl<'de> Deserialize<'de> for LoggingMessageNotificationParam
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LoggingMessageNotificationParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LoggingMessageNotificationParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LoggingMessageNotificationParam
impl PartialEq for LoggingMessageNotificationParam
Source§fn eq(&self, other: &LoggingMessageNotificationParam) -> bool
fn eq(&self, other: &LoggingMessageNotificationParam) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LoggingMessageNotificationParam
impl Serialize for LoggingMessageNotificationParam
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
impl StructuralPartialEq for LoggingMessageNotificationParam
Auto Trait Implementations§
impl Freeze for LoggingMessageNotificationParam
impl RefUnwindSafe for LoggingMessageNotificationParam
impl Send for LoggingMessageNotificationParam
impl Sync for LoggingMessageNotificationParam
impl Unpin for LoggingMessageNotificationParam
impl UnsafeUnpin for LoggingMessageNotificationParam
impl UnwindSafe for LoggingMessageNotificationParam
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