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 (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<M: Debug> Debug for NotificationNoParam<M>
impl<M: Debug> Debug for NotificationNoParam<M>
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<M: JsonSchema> JsonSchema for NotificationNoParam<M>
impl<M: JsonSchema> JsonSchema for NotificationNoParam<M>
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be 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> UnsafeUnpin for NotificationNoParam<M>where
M: UnsafeUnpin,
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