pub struct ErrorSignature {
pub name: String,
pub signature: String,
pub selector: [u8; 4],
pub inputs: Vec<ErrorParam>,
pub source: String,
pub suggestion: Option<String>,
}Expand description
A known error signature from the registry.
Fields§
§name: StringError name (e.g. "InsufficientBalance").
signature: StringFull signature string (e.g. "InsufficientBalance(address,uint256)").
selector: [u8; 4]4-byte selector (keccak256 of signature, first 4 bytes).
inputs: Vec<ErrorParam>ABI-encoded parameter types in order.
source: StringSource of this signature (e.g. "bundled", "4byte.directory", "user").
suggestion: Option<String>Optional human-readable suggestion for this error.
Trait Implementations§
Source§impl Clone for ErrorSignature
impl Clone for ErrorSignature
Source§fn clone(&self) -> ErrorSignature
fn clone(&self) -> ErrorSignature
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorSignature
impl Debug for ErrorSignature
Source§impl<'de> Deserialize<'de> for ErrorSignature
impl<'de> Deserialize<'de> for ErrorSignature
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
Auto Trait Implementations§
impl Freeze for ErrorSignature
impl RefUnwindSafe for ErrorSignature
impl Send for ErrorSignature
impl Sync for ErrorSignature
impl Unpin for ErrorSignature
impl UnsafeUnpin for ErrorSignature
impl UnwindSafe for ErrorSignature
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