pub enum CosmosMsg<T = Empty> {
Bank(BankMsg),
Custom(T),
Staking(StakingMsg),
Distribution(DistributionMsg),
Wasm(WasmMsg),
FinalizeTx(Empty),
}
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.
Bank(BankMsg)
Custom(T)
Staking(StakingMsg)
Distribution(DistributionMsg)
Wasm(WasmMsg)
FinalizeTx(Empty)
Implementations§
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for CosmosMsg<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for CosmosMsg<T>where T: Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<CosmosMsg<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CosmosMsg<T>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> From<DistributionMsg> for CosmosMsg<T>
impl<T> From<DistributionMsg> for CosmosMsg<T>
source§fn from(msg: DistributionMsg) -> CosmosMsg<T>
fn from(msg: DistributionMsg) -> CosmosMsg<T>
Converts to this type from the input type.
source§impl<T> From<StakingMsg> for CosmosMsg<T>
impl<T> From<StakingMsg> for CosmosMsg<T>
source§fn from(msg: StakingMsg) -> CosmosMsg<T>
fn from(msg: StakingMsg) -> CosmosMsg<T>
Converts to this type from the input type.
source§impl<T> JsonSchema for CosmosMsg<T>where
T: JsonSchema,
impl<T> JsonSchema for CosmosMsg<T>where T: JsonSchema,
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &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<CosmosMsg<T>> for CosmosMsg<T>where
T: PartialEq<T>,
impl<T> PartialEq<CosmosMsg<T>> for CosmosMsg<T>where T: PartialEq<T>,
source§impl<T> Serialize for CosmosMsg<T>where
T: Serialize,
impl<T> Serialize for CosmosMsg<T>where T: 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> Eq for CosmosMsg<T>where T: Eq,
impl<T> StructuralEq for CosmosMsg<T>
impl<T> StructuralPartialEq for CosmosMsg<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for CosmosMsg<T>where T: RefUnwindSafe,
impl<T> Send for CosmosMsg<T>where T: Send,
impl<T> Sync for CosmosMsg<T>where T: Sync,
impl<T> Unpin for CosmosMsg<T>where T: Unpin,
impl<T> UnwindSafe for CosmosMsg<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