pub enum JcsErrorInfo {
Json(Error),
Validation(String),
}Expand description
Stable downstream projection of JcsError.
Lets consumers map to their own error type without matching on
JcsError directly. Intentionally exhaustive: any future JcsError
variant collapses into JcsErrorInfo::Validation via
std::fmt::Display, so adding variants to JcsError cannot break
downstream matches on JcsErrorInfo.
Variants§
Json(Error)
Structured serde_json error preserved as-is.
Validation(String)
Any non-Json failure rendered as a message.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JcsErrorInfo
impl !RefUnwindSafe for JcsErrorInfo
impl Send for JcsErrorInfo
impl Sync for JcsErrorInfo
impl Unpin for JcsErrorInfo
impl UnsafeUnpin for JcsErrorInfo
impl !UnwindSafe for JcsErrorInfo
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