Struct jsonrpsee_core::server::helpers::BatchResponse
source · Expand description
Response to a batch request.
Fields§
§result: String
Formatted JSON-RPC response.
success: bool
Indicates 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.