Struct jsonrpsee_types::request::RequestSer
source · pub struct RequestSer<'a> {
pub jsonrpc: TwoPointZero,
pub id: Id<'a>,
pub method: Cow<'a, str>,
pub params: Option<Cow<'a, RawValue>>,
}
Expand description
Serializable JSON-RPC object.
Fields§
§jsonrpc: TwoPointZero
JSON-RPC version.
id: Id<'a>
Request ID
method: Cow<'a, str>
Name of the method to be invoked.
params: Option<Cow<'a, RawValue>>
Parameter values of the request.
Implementations§
Trait Implementations§
source§impl<'a> Clone for RequestSer<'a>
impl<'a> Clone for RequestSer<'a>
source§fn clone(&self) -> RequestSer<'a>
fn clone(&self) -> RequestSer<'a>
Returns a copy 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<'a> Debug for RequestSer<'a>
impl<'a> Debug for RequestSer<'a>
Auto Trait Implementations§
impl<'a> Freeze for RequestSer<'a>
impl<'a> RefUnwindSafe for RequestSer<'a>
impl<'a> Send for RequestSer<'a>
impl<'a> Sync for RequestSer<'a>
impl<'a> Unpin for RequestSer<'a>
impl<'a> UnwindSafe for RequestSer<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)