pub struct RequestNoParam<M = String> {
pub method: M,
pub extensions: Extensions,
}Fields§
§method: M§extensions: Extensionsextensions will carry anything possible in the context, including the metadata
(RequestMetaObject for requests, NotificationMetaObject for notifications)
this is similar with the Extensions in http crate
Trait Implementations§
Source§impl<M> Clone for RequestNoParam<M>where
M: Clone,
impl<M> Clone for RequestNoParam<M>where
M: Clone,
Source§fn clone(&self) -> RequestNoParam<M>
fn clone(&self) -> RequestNoParam<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 for RequestNoParam<M>where
M: Debug,
impl<M> Debug for RequestNoParam<M>where
M: Debug,
Source§impl<M> Default for RequestNoParam<M>where
M: Default,
impl<M> Default for RequestNoParam<M>where
M: Default,
Source§fn default() -> RequestNoParam<M>
fn default() -> RequestNoParam<M>
Returns the “default value” for a type. Read more
Source§impl<'de, M> Deserialize<'de> for RequestNoParam<M>where
M: Deserialize<'de>,
impl<'de, M> Deserialize<'de> for RequestNoParam<M>where
M: Deserialize<'de>,
Source§fn deserialize<D>(
deserializer: D,
) -> Result<RequestNoParam<M>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<RequestNoParam<M>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<RequestNoParam<ListRootsRequestMethod>> for ServerRequest
impl From<RequestNoParam<ListRootsRequestMethod>> for ServerRequest
Source§fn from(value: RequestNoParam<ListRootsRequestMethod>) -> ServerRequest
fn from(value: RequestNoParam<ListRootsRequestMethod>) -> ServerRequest
Converts to this type from the input type.
Source§impl From<RequestNoParam<PingRequestMethod>> for ClientRequest
impl From<RequestNoParam<PingRequestMethod>> for ClientRequest
Source§fn from(value: RequestNoParam<PingRequestMethod>) -> ClientRequest
fn from(value: RequestNoParam<PingRequestMethod>) -> ClientRequest
Converts to this type from the input type.
Source§impl From<RequestNoParam<PingRequestMethod>> for ServerRequest
impl From<RequestNoParam<PingRequestMethod>> for ServerRequest
Source§fn from(value: RequestNoParam<PingRequestMethod>) -> ServerRequest
fn from(value: RequestNoParam<PingRequestMethod>) -> ServerRequest
Converts to this type from the input type.
Source§impl<M> GetExtensions for RequestNoParam<M>
impl<M> GetExtensions for RequestNoParam<M>
fn extensions(&self) -> &Extensions
fn extensions_mut(&mut self) -> &mut Extensions
Source§impl<M> JsonSchema for RequestNoParam<M>where
M: JsonSchema,
impl<M> JsonSchema for RequestNoParam<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 moreSource§impl<M> Serialize for RequestNoParam<M>where
M: Serialize,
impl<M> Serialize for RequestNoParam<M>where
M: Serialize,
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
Auto Trait Implementations§
impl<M = String> !RefUnwindSafe for RequestNoParam<M>
impl<M = String> !UnwindSafe for RequestNoParam<M>
impl<M> Freeze for RequestNoParam<M>where
M: Freeze,
impl<M> Send for RequestNoParam<M>where
M: Send,
impl<M> Sync for RequestNoParam<M>where
M: Sync,
impl<M> Unpin for RequestNoParam<M>where
M: Unpin,
impl<M> UnsafeUnpin for RequestNoParam<M>where
M: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§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 moreCreates a shared type from an unshared type.