pub struct DecodedConstructor {
pub args: Vec<(String, NormalizedValue)>,
pub raw_data: Vec<u8>,
pub decode_errors: HashMap<String, String>,
}Expand description
Result of decoding constructor calldata (no function selector).
Fields§
§args: Vec<(String, NormalizedValue)>Decoded constructor arguments in declaration order
raw_data: Vec<u8>Raw constructor calldata
decode_errors: HashMap<String, String>Decode errors
Implementations§
Source§impl DecodedConstructor
impl DecodedConstructor
Sourcepub fn arg(&self, name: &str) -> Option<&NormalizedValue>
pub fn arg(&self, name: &str) -> Option<&NormalizedValue>
Look up a decoded arg by name
Trait Implementations§
Source§impl Clone for DecodedConstructor
impl Clone for DecodedConstructor
Source§fn clone(&self) -> DecodedConstructor
fn clone(&self) -> DecodedConstructor
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 DecodedConstructor
impl Debug for DecodedConstructor
Source§impl<'de> Deserialize<'de> for DecodedConstructor
impl<'de> Deserialize<'de> for DecodedConstructor
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 DecodedConstructor
impl RefUnwindSafe for DecodedConstructor
impl Send for DecodedConstructor
impl Sync for DecodedConstructor
impl Unpin for DecodedConstructor
impl UnsafeUnpin for DecodedConstructor
impl UnwindSafe for DecodedConstructor
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