alloy_json_rpc

Type Alias BorrowedErrorPayload

Source
pub type BorrowedErrorPayload<'a> = ErrorPayload<&'a RawValue>;
Expand description

A ErrorPayload 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§

struct BorrowedErrorPayload<'a> {
    pub code: i64,
    pub message: Cow<'static, str>,
    pub data: Option<&'a RawValue>,
}

Fields§

§code: i64

The error code.

§message: Cow<'static, str>

The error message (if any).

§data: Option<&'a RawValue>

The error data (if any).

Implementations§

Source§

impl BorrowedErrorPayload<'_>

Source

pub fn into_owned(self) -> ErrorPayload

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