Struct errmap::ErrorMapping
source · [−]pub struct ErrorMapping {
pub error_categories: BTreeMap<u64, ErrorDescription>,
pub module_error_maps: BTreeMap<ModuleIdData, BTreeMap<u64, ErrorDescription>>,
}
Expand description
Move error map which can be represented as JSON.
Fields
error_categories: BTreeMap<u64, ErrorDescription>
The set of error categories and their descriptions
module_error_maps: BTreeMap<ModuleIdData, BTreeMap<u64, ErrorDescription>>
The set of modules, and the module-specific errors
Trait Implementations
sourceimpl Clone for ErrorMapping
impl Clone for ErrorMapping
sourcefn clone(&self) -> ErrorMapping
fn clone(&self) -> ErrorMapping
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ErrorMapping
impl Debug for ErrorMapping
sourceimpl Default for ErrorMapping
impl Default for ErrorMapping
sourcefn default() -> ErrorMapping
fn default() -> ErrorMapping
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ErrorMapping
impl<'de> Deserialize<'de> for ErrorMapping
sourcefn 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
sourceimpl Extend<ErrorMapping> for ErrorMapping
impl Extend<ErrorMapping> for ErrorMapping
sourcefn extend<T: IntoIterator<Item = ErrorMapping>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = ErrorMapping>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl From<ErrorMapping> for ErrorMapping
impl From<ErrorMapping> for ErrorMapping
sourcefn from(errmap: ErrorMapping) -> Self
fn from(errmap: ErrorMapping) -> Self
Converts to this type from the input type.
sourceimpl From<ErrorMapping> for ErrorMapping
impl From<ErrorMapping> for ErrorMapping
sourcefn from(val: ErrorMapping) -> Self
fn from(val: ErrorMapping) -> Self
Converts to this type from the input type.
sourceimpl Serialize for ErrorMapping
impl Serialize for ErrorMapping
Auto Trait Implementations
impl RefUnwindSafe for ErrorMapping
impl Send for ErrorMapping
impl Sync for ErrorMapping
impl Unpin for ErrorMapping
impl UnwindSafe for ErrorMapping
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more