pub struct RequestNoParam<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 RequestNoParam<M>
impl<M: Clone> Clone for RequestNoParam<M>
Source§fn clone(&self) -> RequestNoParam<M>
fn clone(&self) -> RequestNoParam<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 RequestNoParam<M>
impl<M: Debug> Debug for RequestNoParam<M>
Source§impl<M: Default> Default for RequestNoParam<M>
impl<M: Default> Default for RequestNoParam<M>
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<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<RequestNoParam<ListRootsRequestMethod>> for ServerRequest
impl From<RequestNoParam<ListRootsRequestMethod>> for ServerRequest
Source§fn from(value: ListRootsRequest) -> Self
fn from(value: ListRootsRequest) -> Self
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: PingRequest) -> Self
fn from(value: PingRequest) -> Self
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: PingRequest) -> Self
fn from(value: PingRequest) -> Self
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 moreAuto Trait Implementations§
impl<M> Freeze for RequestNoParam<M>where
M: Freeze,
impl<M = String> !RefUnwindSafe for RequestNoParam<M>
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,
impl<M = String> !UnwindSafe for RequestNoParam<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