pub enum ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg = Empty> {
Base(BaseMsg),
App(AppMsg),
IbcCallback(IbcResponseMsg),
Receive(ReceiveMsg),
}
Expand description
Wrapper around all possible messages that can be sent to the contract.
Variants§
Base(BaseMsg)
A configuration message, defined by the base.
App(AppMsg)
An app request defined by a base consumer.
IbcCallback(IbcResponseMsg)
IbcReceive to process IBC callbacks
Receive(ReceiveMsg)
Receive endpoint for CW20 / external service integrations
Trait Implementations§
Source§impl<BaseMsg: Clone, AppMsg: Clone, ReceiveMsg: Clone> Clone for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
impl<BaseMsg: Clone, AppMsg: Clone, ReceiveMsg: Clone> Clone for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
Source§fn clone(&self) -> ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
fn clone(&self) -> ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<BaseMsg: Debug, AppMsg: Debug, ReceiveMsg: Debug> Debug for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
impl<BaseMsg: Debug, AppMsg: Debug, ReceiveMsg: Debug> Debug for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
Source§impl<'de, BaseMsg, AppMsg, ReceiveMsg> Deserialize<'de> for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
impl<'de, BaseMsg, AppMsg, ReceiveMsg> Deserialize<'de> for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
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<RequestMsg, Request, BaseExecMsg> From<ApiRequestMsg<RequestMsg>> for ExecuteMsg<BaseExecMsg, ApiRequestMsg<RequestMsg>, Request>
impl<RequestMsg, Request, BaseExecMsg> From<ApiRequestMsg<RequestMsg>> for ExecuteMsg<BaseExecMsg, ApiRequestMsg<RequestMsg>, Request>
Source§fn from(request_msg: ApiRequestMsg<RequestMsg>) -> Self
fn from(request_msg: ApiRequestMsg<RequestMsg>) -> Self
Converts to this type from the input type.
Source§impl<RequestMsg, ReceiveMsg> From<BaseExecuteMsg> for ExecuteMsg<BaseExecuteMsg, RequestMsg, ReceiveMsg>
impl<RequestMsg, ReceiveMsg> From<BaseExecuteMsg> for ExecuteMsg<BaseExecuteMsg, RequestMsg, ReceiveMsg>
Source§fn from(api_msg: BaseExecuteMsg) -> Self
fn from(api_msg: BaseExecuteMsg) -> Self
Converts to this type from the input type.
Source§impl<BaseMsg: JsonSchema, AppMsg: JsonSchema, ReceiveMsg: JsonSchema> JsonSchema for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
impl<BaseMsg: JsonSchema, AppMsg: JsonSchema, ReceiveMsg: JsonSchema> JsonSchema for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
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<BaseMsg: PartialEq, AppMsg: PartialEq, ReceiveMsg: PartialEq> PartialEq for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
impl<BaseMsg: PartialEq, AppMsg: PartialEq, ReceiveMsg: PartialEq> PartialEq for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
Source§fn eq(&self, other: &ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>) -> bool
fn eq(&self, other: &ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<BaseMsg, AppMsg, ReceiveMsg> Serialize for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
impl<BaseMsg, AppMsg, ReceiveMsg> Serialize for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
impl<BaseMsg, AppMsg, ReceiveMsg> StructuralPartialEq for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
Auto Trait Implementations§
impl<BaseMsg, AppMsg, ReceiveMsg> Freeze for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
impl<BaseMsg, AppMsg, ReceiveMsg> RefUnwindSafe for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
impl<BaseMsg, AppMsg, ReceiveMsg> Send for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
impl<BaseMsg, AppMsg, ReceiveMsg> Sync for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
impl<BaseMsg, AppMsg, ReceiveMsg> Unpin for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
impl<BaseMsg, AppMsg, ReceiveMsg> UnwindSafe for ExecuteMsg<BaseMsg, AppMsg, ReceiveMsg>
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