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.