Skip to main content

DataError

Trait DataError 

Source
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§

Source

fn code(&self) -> i32

Source

fn msg(&self) -> &str

Source

fn data(&self) -> Option<&Value>

Source

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".

Implementors§