pub struct GErrSource {
pub id: Option<Box<dyn IdSource>>,
pub id_json: Option<Value>,
pub code: Option<Cow<'static, str>>,
pub message: Cow<'static, str>,
pub sources: Option<Vec<Source>>,
pub tags: Option<Vec<Cow<'static, str>>>,
pub data: Option<Box<dyn DataSource>>,
pub help: Option<Cow<'static, str>>,
pub data_json: Option<Value>,
pub location: Option<ErrorLocation>,
}Expand description
GErrSource - GErr as source of error.
Fields§
§id: Option<Box<dyn IdSource>>Error id, must implement Debug and Display.
id_json: Option<Value>Error id as json value, support for numeric and string only.
Passing other than numeric and string, will be ignored at serde.
code: Option<Cow<'static, str>>Error code.
message: Cow<'static, str>Error message.
sources: Option<Vec<Source>>Error sources.
Error tags.
data: Option<Box<dyn DataSource>>Error data.
help: Option<Cow<'static, str>>Error help.
data_json: Option<Value>Error data as json values. Supports all json values.
location: Option<ErrorLocation>Error location.
Trait Implementations§
Source§impl Debug for GErrSource
impl Debug for GErrSource
Source§impl Display for GErrSource
impl Display for GErrSource
Source§impl Error for GErrSource
impl Error for GErrSource
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for GErrSource
impl !UnwindSafe for GErrSource
impl Freeze for GErrSource
impl Send for GErrSource
impl Sync for GErrSource
impl Unpin for GErrSource
impl UnsafeUnpin for GErrSource
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