pub trait DataError:
Error
+ Debug
+ Display
+ Serialize {
// Required methods
fn code(&self) -> i32;
fn msg(&self) -> &str;
fn data(&self) -> Option<&Value>;
fn source(&self) -> Option<&(dyn Error + 'static)>;
}Required Methods§
fn code(&self) -> i32
fn msg(&self) -> &str
fn data(&self) -> Option<&Value>
fn source(&self) -> Option<&(dyn Error + 'static)>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".