Struct jsonrpsee_core::server::helpers::BatchResponse   
source · Expand description
Response to a batch request.
Fields§
§result: StringFormatted JSON-RPC response.
success: boolIndicates whether the call was successful or not.
Implementations§
source§impl BatchResponse
 
impl BatchResponse
sourcepub fn error(id: Id<'_>, err: impl Into<ErrorObject<'static>>) -> Self
 
pub fn error(id: Id<'_>, err: impl Into<ErrorObject<'static>>) -> Self
Create a BatchResponse from an error.
Trait Implementations§
source§impl Clone for BatchResponse
 
impl Clone for BatchResponse
source§fn clone(&self) -> BatchResponse
 
fn clone(&self) -> BatchResponse
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 more