alloy_json_rpc

Type Alias BorrowedResponsePayload

source
pub type BorrowedResponsePayload<'a> = ResponsePayload<&'a RawValue, &'a RawValue>;
Expand description

A ResponsePayload that has been partially deserialized, borrowing its contents from the deserializer. This is used primarily for intermediate deserialization. Most users will not require it.

See the top-level docs for more info.

Aliased Type§

enum BorrowedResponsePayload<'a> {
    Success(&'a RawValue),
    Failure(ErrorPayload<&'a RawValue>),
}

Variants§

§

Success(&'a RawValue)

A successful response payload.

§

Failure(ErrorPayload<&'a RawValue>)

An error response payload.

Implementations§

source§

impl BorrowedResponsePayload<'_>

source

pub fn into_owned(self) -> ResponsePayload

Convert this borrowed response payload into an owned payload by copying the data from the deserializer (if necessary).