pub struct JsonRpc<T> {
pub method: String,
pub params: T,
/* private fields */
}
Fields
method: String
params: T
Implementations
Trait Implementations
sourceimpl<'de, T> Deserialize<'de> for JsonRpc<T> where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for JsonRpc<T> where
T: 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 JsonRpc<T> where
T: RefUnwindSafe,
impl<T> Send for JsonRpc<T> where
T: Send,
impl<T> Sync for JsonRpc<T> where
T: Sync,
impl<T> Unpin for JsonRpc<T> where
T: Unpin,
impl<T> UnwindSafe for JsonRpc<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more