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: i64The 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).
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 28 bytes