pub enum SimpleType {
Address,
Uint,
Int,
Bool,
Fixed,
Ufixed,
Function,
Bytes,
String,
Tuple,
}
Expand description
Contract abi simple types enum
Variants§
Address
Uint
Int
Bool
Fixed
Ufixed
Function
an address (20 bytes) followed by a function selector (4 bytes). Encoded identical to bytes24.
Bytes
String
Tuple
Implementations§
Trait Implementations§
Source§impl Clone for SimpleType
impl Clone for SimpleType
Source§fn clone(&self) -> SimpleType
fn clone(&self) -> SimpleType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SimpleType
impl Debug for SimpleType
Source§impl<'de> Deserialize<'de> for SimpleType
impl<'de> Deserialize<'de> for SimpleType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimpleType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimpleType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SimpleType
impl PartialEq for SimpleType
Source§impl Serialize for SimpleType
impl Serialize for SimpleType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl ToString for SimpleType
impl ToString for SimpleType
impl StructuralPartialEq for SimpleType
Auto Trait Implementations§
impl Freeze for SimpleType
impl RefUnwindSafe for SimpleType
impl Send for SimpleType
impl Sync for SimpleType
impl Unpin for SimpleType
impl UnwindSafe for SimpleType
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