#[non_exhaustive]pub struct SetLevelRequestParams {
pub meta: Option<Meta>,
pub level: LoggingLevel,
}๐Deprecated since 2.0.0:
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 setting the logging level
Fields (Non-exhaustive)ยง
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.meta: Option<Meta>๐Deprecated since 2.0.0:
Logging is deprecated by SEP-2577 and will be removed in a future release. See https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2577
Protocol-level metadata for this request (SEP-1319)
level: LoggingLevel๐Deprecated since 2.0.0:
Logging is deprecated by SEP-2577 and will be removed in a future release. See https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2577
The desired logging level
Implementationsยง
Sourceยงimpl SetLevelRequestParams
impl SetLevelRequestParams
Sourcepub fn new(level: LoggingLevel) -> Self
pub fn new(level: LoggingLevel) -> Self
Create a new SetLevelRequestParams with the given logging level.
Trait Implementationsยง
Sourceยงimpl Clone for SetLevelRequestParams
impl Clone for SetLevelRequestParams
Sourceยงfn clone(&self) -> SetLevelRequestParams
fn clone(&self) -> SetLevelRequestParams
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 Debug for SetLevelRequestParams
impl Debug for SetLevelRequestParams
Sourceยงimpl<'de> Deserialize<'de> for SetLevelRequestParams
impl<'de> Deserialize<'de> for SetLevelRequestParams
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 JsonSchema for SetLevelRequestParams
impl JsonSchema for SetLevelRequestParams
Sourceยงfn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Sourceยงfn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Sourceยงfn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSourceยงimpl PartialEq for SetLevelRequestParams
impl PartialEq for SetLevelRequestParams
Sourceยงfn eq(&self, other: &SetLevelRequestParams) -> bool
fn eq(&self, other: &SetLevelRequestParams) -> bool
Tests for
self and other values to be equal, and is used by ==.Sourceยงimpl RequestParamsMeta for SetLevelRequestParams
impl RequestParamsMeta for SetLevelRequestParams
Sourceยงfn progress_token(&self) -> Option<ProgressToken>
fn progress_token(&self) -> Option<ProgressToken>
Get the progress token from meta, if present
Sourceยงfn set_progress_token(&mut self, token: ProgressToken)
fn set_progress_token(&mut self, token: ProgressToken)
Set a progress token in meta
Sourceยงimpl Serialize for SetLevelRequestParams
impl Serialize for SetLevelRequestParams
impl StructuralPartialEq for SetLevelRequestParams
Auto Trait Implementationsยง
impl Freeze for SetLevelRequestParams
impl RefUnwindSafe for SetLevelRequestParams
impl Send for SetLevelRequestParams
impl Sync for SetLevelRequestParams
impl Unpin for SetLevelRequestParams
impl UnsafeUnpin for SetLevelRequestParams
impl UnwindSafe for SetLevelRequestParams
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