pub struct Parameter {
pub name: String,
pub description: Option<String>,
pub internal_type: Option<String>,
pub type: String,
pub components: Option<Vec<String>>,
}
Fields§
§name: String
The name of the parameter as it appears in the ABI
description: Option<String>
A description of the parameter, fetched from the devdoc of this contract
internal_type: Option<String>
The internal type of the parameter as it appears in the ABI
type: String
The type of the parameter as it appears in the ABI
components: Option<Vec<String>>
In case it’s a struct, it will hold the struct data
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Parameter
impl<'de> Deserialize<'de> for Parameter
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
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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