pub struct TypedError {
pub message: String,
pub error_type: String,
}Expand description
Represents a specific error that occurred during data processing.
This struct is used inside the Value::TypedError variant to carry
structured error information instead of just a string.
Fields§
§message: StringHuman-readable error message.
error_type: StringA string identifying the type or category of the error.
Trait Implementations§
Source§impl Clone for TypedError
impl Clone for TypedError
Source§fn clone(&self) -> TypedError
fn clone(&self) -> TypedError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypedError
impl Debug for TypedError
Source§impl<'de> Deserialize<'de> for TypedError
impl<'de> Deserialize<'de> for TypedError
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
Source§impl PartialEq for TypedError
impl PartialEq for TypedError
Source§impl Serialize for TypedError
impl Serialize for TypedError
impl StructuralPartialEq for TypedError
Auto Trait Implementations§
impl Freeze for TypedError
impl RefUnwindSafe for TypedError
impl Send for TypedError
impl Sync for TypedError
impl Unpin for TypedError
impl UnwindSafe for TypedError
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