pub struct ErrorMapping {
pub rust_type: String,
pub value: String,
}Expand description
Domain error construction using paths only, never expressions or messages.
Fields§
§rust_type: StringDomain error type, e.g. crate::ContractError.
value: StringFixed enum variant or constant, converted with Into to rust_type.
Trait Implementations§
Source§impl Clone for ErrorMapping
impl Clone for ErrorMapping
Source§impl Debug for ErrorMapping
impl Debug for ErrorMapping
Source§impl<'de> Deserialize<'de> for ErrorMapping
impl<'de> Deserialize<'de> for ErrorMapping
Source§fn 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
Source§impl TryFrom<&NativeErrorMapping> for ErrorMapping
impl TryFrom<&NativeErrorMapping> for ErrorMapping
Source§type Error = AdapterError
type Error = AdapterError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for ErrorMapping
impl Freeze for ErrorMapping
impl Move for ErrorMapping
impl RefUnwindSafe for ErrorMapping
impl Send for ErrorMapping
impl Sync for ErrorMapping
impl Unpin for ErrorMapping
impl UnsafeUnpin for ErrorMapping
impl UnwindSafe for ErrorMapping
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