[−][src]Enum clarity::abi::Token
A token represents a value of parameter of the contract call.
For each supported type there is separate entry that later is helpful to determine actual byte representation.
Variants
Uint(Uint256)
Unsigned type with value already encoded.
Address(Address)
Ethereum Address
Bool(bool)
A boolean logic
String(String)
Represents a string
Bytes(Vec<u8>)
Fixed size array of bytes
UnboundedBytes(Vec<u8>)
This is a dynamic array of bytes that reflects dynamic "bytes" type in Solidity
Dynamic(Vec<Token>)
Dynamic array with supported values of supported types already converted
Methods
impl Token
[src]
impl Token
pub fn serialize(&self) -> SerializedToken
[src]
pub fn serialize(&self) -> SerializedToken
Serializes a token into a SerializedToken
Trait Implementations
impl From<u8> for Token
[src]
impl From<u8> for Token
impl From<u16> for Token
[src]
impl From<u16> for Token
impl From<u32> for Token
[src]
impl From<u32> for Token
impl From<u64> for Token
[src]
impl From<u64> for Token
impl From<bool> for Token
[src]
impl From<bool> for Token
impl From<Vec<u8>> for Token
[src]
impl From<Vec<u8>> for Token
impl From<Vec<u32>> for Token
[src]
impl From<Vec<u32>> for Token
impl From<Address> for Token
[src]
impl From<Address> for Token
impl<'a> From<&'a str> for Token
[src]
impl<'a> From<&'a str> for Token
impl From<Uint256> for Token
[src]
impl From<Uint256> for Token
impl Debug for Token
[src]
impl Debug for Token
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self