#[non_exhaustive]pub struct Error {
pub error_severity: ErrorSeverity,
pub error_type: ErrorType,
pub error_tag: ErrorTag,
pub error_app_tag: Option<String>,
pub error_path: Option<String>,
pub error_message: Option<String>,
pub error_info: Option<ErrorInfo>,
}Expand description
One <rpc-error> from a reply (RFC6241 4.3).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.error_severity: ErrorSeverity<error-severity>.
error_type: ErrorType<error-type>, the protocol layer that failed.
error_tag: ErrorTag<error-tag>, the machine-readable reason.
error_app_tag: Option<String><error-app-tag>, a data-model-specific reason.
error_path: Option<String><error-path>, the offending node.
error_message: Option<String><error-message>, human-readable text.
error_info: Option<ErrorInfo><error-info>, protocol- or data-model-specific detail.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more