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<'_>
impl BorrowedErrorPayload<'_>
sourcepub fn into_owned(self) -> ErrorPayload
pub fn into_owned(self) -> ErrorPayload
Convert this borrowed error payload into an owned payload by copying the data from the deserializer (if necessary).