pub enum Token {
Address(Address),
FixedBytes(FixedBytes),
Bytes(Bytes),
Uint(Uint),
Int(Int),
String(String),
}
Variants§
Address(Address)
Address.
solidity name: address Encoded to left padded [0u8; 32].
FixedBytes(FixedBytes)
Vector of bytes with known size.
solidity name eg.: bytes8, bytes32, bytes64, bytes1024 Encoded to right padded [0u8; ((N + 31) / 32) * 32].
Bytes(Bytes)
Vector of bytes of unknown size.
solidity name: bytes Encoded in two parts. Init part: offset of ’closing part`. Closing part: encoded length followed by encoded right padded bytes.
Uint(Uint)
Unsigned integer.
solidity name: uint
Int(Int)
Signed integer.
solidity name: int
String(String)
String.
solidity name: string Encoded in the same way as bytes. Must be utf8 compliant.
Trait Implementations§
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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