pub struct ParameterWithValue {
pub name: String,
pub description: Option<String>,
pub internal_type: Option<String>,
pub type: String,
pub components: Option<Vec<Parameter>>,
pub value: Option<String>,
pub function_value: Option<LeanAbiFunction>,
}
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<Parameter>>
§value: Option<String>
The value of the parameter. can also be ParameterWithValue
function_value: Option<LeanAbiFunction>
The function value of this param (if has one). If this is set, the
value
shouldn`t be. Used for proxies
Implementations§
Source§impl ParameterWithValue
impl ParameterWithValue
pub fn new(name: String, type: String) -> ParameterWithValue
Trait Implementations§
Source§impl Clone for ParameterWithValue
impl Clone for ParameterWithValue
Source§fn clone(&self) -> ParameterWithValue
fn clone(&self) -> ParameterWithValue
Returns a copy 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 ParameterWithValue
impl Debug for ParameterWithValue
Source§impl Default for ParameterWithValue
impl Default for ParameterWithValue
Source§fn default() -> ParameterWithValue
fn default() -> ParameterWithValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParameterWithValue
impl<'de> Deserialize<'de> for ParameterWithValue
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 PartialEq for ParameterWithValue
impl PartialEq for ParameterWithValue
Source§impl Serialize for ParameterWithValue
impl Serialize for ParameterWithValue
impl StructuralPartialEq for ParameterWithValue
Auto Trait Implementations§
impl Freeze for ParameterWithValue
impl RefUnwindSafe for ParameterWithValue
impl Send for ParameterWithValue
impl Sync for ParameterWithValue
impl Unpin for ParameterWithValue
impl UnwindSafe for ParameterWithValue
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