pub struct DecodedAbort {
pub exception: Option<String>,
pub value: Value,
pub exception_crate: Option<&'static str>,
pub exception_version: Option<&'static str>,
}Expand description
A contract abort payload decoded through exception metadata.
Frontends choose which fields to include in their output.
Fields§
§exception: Option<String>Exception type name, when the thrown type is a named spec type.
value: ValueDecoded exception payload.
exception_crate: Option<&'static str>Crate that defines the exception, when it decoded through the describe registry rather than the method’s declared spec exceptions.
exception_version: Option<&'static str>Major version of the defining crate baked into the abort selector, when known.
Implementations§
Source§impl DecodedAbort
impl DecodedAbort
Sourcepub fn exception_label(&self) -> Option<String>
pub fn exception_label(&self) -> Option<String>
Exception name annotated with its defining crate and major version,
e.g. LibraryExn (thruput-sdk, v1); the bare name when the origin is unknown.
Trait Implementations§
Source§impl Clone for DecodedAbort
impl Clone for DecodedAbort
Source§impl Debug for DecodedAbort
impl Debug for DecodedAbort
Source§impl PartialEq for DecodedAbort
impl PartialEq for DecodedAbort
impl StructuralPartialEq for DecodedAbort
Auto Trait Implementations§
impl Freeze for DecodedAbort
impl RefUnwindSafe for DecodedAbort
impl Send for DecodedAbort
impl Sync for DecodedAbort
impl Unpin for DecodedAbort
impl UnsafeUnpin for DecodedAbort
impl UnwindSafe for DecodedAbort
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