Struct yajrc::RpcRequest
source · [−]pub struct RpcRequest<T: RpcMethod = AnyRpcMethod<'static>> {
pub id: Option<Id>,
pub method: T,
pub params: T::Params,
}
Fields
id: Option<Id>
method: T
params: T::Params
Trait Implementations
sourceimpl<T: Clone + RpcMethod> Clone for RpcRequest<T> where
T::Params: Clone,
impl<T: Clone + RpcMethod> Clone for RpcRequest<T> where
T::Params: Clone,
sourcefn clone(&self) -> RpcRequest<T>
fn clone(&self) -> RpcRequest<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Default + RpcMethod> Default for RpcRequest<T> where
T::Params: Default,
impl<T: Default + RpcMethod> Default for RpcRequest<T> where
T::Params: Default,
sourcefn default() -> RpcRequest<T>
fn default() -> RpcRequest<T>
Returns the “default value” for a type. Read more
sourceimpl<'de, T: RpcMethod> Deserialize<'de> for RpcRequest<T> where
T: Deserialize<'de>,
T::Params: Deserialize<'de>,
impl<'de, T: RpcMethod> Deserialize<'de> for RpcRequest<T> where
T: Deserialize<'de>,
T::Params: Deserialize<'de>,
sourcefn 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
Auto Trait Implementations
impl<T> RefUnwindSafe for RpcRequest<T> where
T: RefUnwindSafe,
<T as RpcMethod>::Params: RefUnwindSafe,
impl<T> Send for RpcRequest<T> where
T: Send,
<T as RpcMethod>::Params: Send,
impl<T> Sync for RpcRequest<T> where
T: Sync,
<T as RpcMethod>::Params: Sync,
impl<T> Unpin for RpcRequest<T> where
T: Unpin,
<T as RpcMethod>::Params: Unpin,
impl<T> UnwindSafe for RpcRequest<T> where
T: UnwindSafe,
<T as RpcMethod>::Params: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more