pub struct Call<R> {
pub id: RequestId,
pub method: Cow<'static, str>,
pub params: R,
}Expand description
A request in its envelope. Built with Call::new, which takes the method from the
request type.
Fields§
§id: RequestIdChosen by the client.
method: Cow<'static, str>The request’s method.
params: RThe request.
Implementations§
Trait Implementations§
Source§impl<'de, R> Deserialize<'de> for Call<R>where
R: Deserialize<'de>,
impl<'de, R> Deserialize<'de> for Call<R>where
R: 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
impl<R: PartialEq> StructuralPartialEq for Call<R>
Auto Trait Implementations§
impl<R> Forget for Call<R>
impl<R> Freeze for Call<R>
impl<R> Move for Call<R>
impl<R> RefUnwindSafe for Call<R>
impl<R> Send for Call<R>
impl<R> Sync for Call<R>
impl<R> Unpin for Call<R>
impl<R> UnsafeUnpin for Call<R>
impl<R> UnwindSafe for Call<R>
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