pub struct NotificationNoParam<M = String> {
pub method: M,
pub extensions: Extensions,
}Fields§
§method: M§extensions: Extensionsextensions will carry anything possible in the context, including Meta
this is similar with the Extensions in http crate
Trait Implementations§
Source§impl<M: Clone> Clone for NotificationNoParam<M>
impl<M: Clone> Clone for NotificationNoParam<M>
Source§fn clone(&self) -> NotificationNoParam<M>
fn clone(&self) -> NotificationNoParam<M>
Returns a duplicate 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<M: Debug> Debug for NotificationNoParam<M>
impl<M: Debug> Debug for NotificationNoParam<M>
Source§impl<M: Default> Default for NotificationNoParam<M>
impl<M: Default> Default for NotificationNoParam<M>
Source§fn default() -> NotificationNoParam<M>
fn default() -> NotificationNoParam<M>
Returns the “default value” for a type. Read more
Source§impl<'de, M> Deserialize<'de> for NotificationNoParam<M>where
M: Deserialize<'de>,
impl<'de, M> Deserialize<'de> for NotificationNoParam<M>where
M: Deserialize<'de>,
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<NotificationNoParam<InitializedNotificationMethod>> for ClientNotification
impl From<NotificationNoParam<InitializedNotificationMethod>> for ClientNotification
Source§fn from(value: InitializedNotification) -> Self
fn from(value: InitializedNotification) -> Self
Converts to this type from the input type.
Source§impl From<NotificationNoParam<PromptListChangedNotificationMethod>> for ServerNotification
impl From<NotificationNoParam<PromptListChangedNotificationMethod>> for ServerNotification
Source§fn from(value: PromptListChangedNotification) -> Self
fn from(value: PromptListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<NotificationNoParam<ResourceListChangedNotificationMethod>> for ServerNotification
impl From<NotificationNoParam<ResourceListChangedNotificationMethod>> for ServerNotification
Source§fn from(value: ResourceListChangedNotification) -> Self
fn from(value: ResourceListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<NotificationNoParam<RootsListChangedNotificationMethod>> for ClientNotification
impl From<NotificationNoParam<RootsListChangedNotificationMethod>> for ClientNotification
Source§fn from(value: RootsListChangedNotification) -> Self
fn from(value: RootsListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<NotificationNoParam<ToolListChangedNotificationMethod>> for ServerNotification
impl From<NotificationNoParam<ToolListChangedNotificationMethod>> for ServerNotification
Source§fn from(value: ToolListChangedNotification) -> Self
fn from(value: ToolListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl<M> JsonSchema for NotificationNoParam<M>where
M: JsonSchema,
impl<M> JsonSchema for NotificationNoParam<M>where
M: JsonSchema,
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 moreAuto Trait Implementations§
impl<M> Freeze for NotificationNoParam<M>where
M: Freeze,
impl<M = String> !RefUnwindSafe for NotificationNoParam<M>
impl<M> Send for NotificationNoParam<M>where
M: Send,
impl<M> Sync for NotificationNoParam<M>where
M: Sync,
impl<M> Unpin for NotificationNoParam<M>where
M: Unpin,
impl<M = String> !UnwindSafe for NotificationNoParam<M>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more