#[non_exhaustive]pub enum EvmMsg<T>where
T: EvmAddressLike,{
Call {
to: T,
data: HexBinary,
value: Option<Uint128>,
allow_failure: Option<bool>,
},
DelegateCall {
to: T,
data: HexBinary,
value: Option<Uint128>,
allow_failure: Option<bool>,
},
}
Expand description
A message to be sent to the EVM
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Call
Call a contract with the given data
Fields
§
to: T
The address of the contract to call, must pass checksum validation
DelegateCall
Delegate a call to an external contract. This is dangerous and should be used with caution.
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for EvmMsg<T>where
T: EvmAddressLike + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for EvmMsg<T>where
T: EvmAddressLike + Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EvmMsg<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EvmMsg<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> JsonSchema for EvmMsg<T>where
T: EvmAddressLike + JsonSchema,
impl<T> JsonSchema for EvmMsg<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> Serialize for EvmMsg<T>where
T: EvmAddressLike + Serialize,
impl<T> Serialize for EvmMsg<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 EvmMsg<T>where
T: EvmAddressLike,
Auto Trait Implementations§
impl<T> Freeze for EvmMsg<T>where
T: Freeze,
impl<T> RefUnwindSafe for EvmMsg<T>where
T: RefUnwindSafe,
impl<T> Send for EvmMsg<T>where
T: Send,
impl<T> Sync for EvmMsg<T>where
T: Sync,
impl<T> Unpin for EvmMsg<T>where
T: Unpin,
impl<T> UnwindSafe for EvmMsg<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