pub struct Erc20Token<T>where
T: EvmAddressLike,{
pub address: T,
pub amount: Uint128,
}
Fields§
§address: T
§amount: Uint128
Implementations§
Source§impl Erc20Token<Address>
impl Erc20Token<Address>
pub fn unchecked(self) -> Erc20Token<String>
Trait Implementations§
Source§impl<T> Clone for Erc20Token<T>where
T: Clone + EvmAddressLike,
impl<T> Clone for Erc20Token<T>where
T: Clone + EvmAddressLike,
Source§fn clone(&self) -> Erc20Token<T>
fn clone(&self) -> Erc20Token<T>
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<T> Debug for Erc20Token<T>where
T: Debug + EvmAddressLike,
impl<T> Debug for Erc20Token<T>where
T: Debug + EvmAddressLike,
Source§impl<'de, T> Deserialize<'de> for Erc20Token<T>where
T: EvmAddressLike + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Erc20Token<T>where
T: EvmAddressLike + Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Erc20Token<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Erc20Token<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Token> for Erc20Token<String>
impl From<Token> for Erc20Token<String>
Source§fn from(token: Token) -> Erc20Token<String>
fn from(token: Token) -> Erc20Token<String>
Converts to this type from the input type.
Source§impl<T> JsonSchema for Erc20Token<T>where
T: EvmAddressLike + JsonSchema,
impl<T> JsonSchema for Erc20Token<T>where
T: EvmAddressLike + JsonSchema,
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl<T> PartialEq for Erc20Token<T>where
T: PartialEq + EvmAddressLike,
impl<T> PartialEq for Erc20Token<T>where
T: PartialEq + EvmAddressLike,
Source§impl<T> Serialize for Erc20Token<T>where
T: EvmAddressLike + Serialize,
impl<T> Serialize for Erc20Token<T>where
T: EvmAddressLike + Serialize,
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
impl<T> StructuralPartialEq for Erc20Token<T>where
T: EvmAddressLike,
Auto Trait Implementations§
impl<T> Freeze for Erc20Token<T>where
T: Freeze,
impl<T> RefUnwindSafe for Erc20Token<T>where
T: RefUnwindSafe,
impl<T> Send for Erc20Token<T>where
T: Send,
impl<T> Sync for Erc20Token<T>where
T: Sync,
impl<T> Unpin for Erc20Token<T>where
T: Unpin,
impl<T> UnwindSafe for Erc20Token<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more