Enum secret_cosmwasm_std::CosmosMsg
source · [−]pub enum CosmosMsg<T = Empty> where
T: Clone + Debug + PartialEq + JsonSchema, {
Bank(BankMsg),
Custom(T),
Staking(StakingMsg),
Wasm(WasmMsg),
Gov(GovMsg),
}
Variants
Bank(BankMsg)
Custom(T)
Staking(StakingMsg)
Wasm(WasmMsg)
Gov(GovMsg)
Trait Implementations
sourceimpl<'de, T> Deserialize<'de> for CosmosMsg<T> where
T: Clone + Debug + PartialEq + JsonSchema,
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for CosmosMsg<T> where
T: Clone + Debug + PartialEq + JsonSchema,
T: Deserialize<'de>,
sourcefn 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
sourceimpl<T: Clone + Debug + PartialEq + JsonSchema> From<StakingMsg> for CosmosMsg<T>
impl<T: Clone + Debug + PartialEq + JsonSchema> From<StakingMsg> for CosmosMsg<T>
sourcefn from(msg: StakingMsg) -> Self
fn from(msg: StakingMsg) -> Self
Converts to this type from the input type.
sourceimpl<T: JsonSchema> JsonSchema for CosmosMsg<T> where
T: Clone + Debug + PartialEq + JsonSchema,
impl<T: JsonSchema> JsonSchema for CosmosMsg<T> where
T: Clone + Debug + PartialEq + JsonSchema,
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 more
sourceimpl<T: PartialEq> PartialEq<CosmosMsg<T>> for CosmosMsg<T> where
T: Clone + Debug + PartialEq + JsonSchema,
impl<T: PartialEq> PartialEq<CosmosMsg<T>> for CosmosMsg<T> where
T: Clone + Debug + PartialEq + JsonSchema,
sourceimpl<T> Serialize for CosmosMsg<T> where
T: Clone + Debug + PartialEq + JsonSchema,
T: Serialize,
impl<T> Serialize for CosmosMsg<T> where
T: Clone + Debug + PartialEq + JsonSchema,
T: Serialize,
impl<T> StructuralPartialEq for CosmosMsg<T> where
T: Clone + Debug + PartialEq + JsonSchema,
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more