#[non_exhaustive]pub enum EvmMsg<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: TThe 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: Deserialize<'de> + EvmAddressLike,
impl<'de, T> Deserialize<'de> for EvmMsg<T>where
T: Deserialize<'de> + EvmAddressLike,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: EvmAddressLike + JsonSchema> JsonSchema for EvmMsg<T>
impl<T: EvmAddressLike + JsonSchema> JsonSchema for EvmMsg<T>
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 moreimpl<T: EvmAddressLike> StructuralPartialEq for EvmMsg<T>
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