Enum cw1155::Cw1155ExecuteMsg
source · [−]pub enum Cw1155ExecuteMsg {
SendFrom {
from: String,
to: String,
token_id: TokenId,
value: Uint128,
msg: Option<Binary>,
},
BatchSendFrom {
from: String,
to: String,
batch: Vec<(TokenId, Uint128)>,
msg: Option<Binary>,
},
Mint {
to: String,
token_id: TokenId,
value: Uint128,
msg: Option<Binary>,
},
BatchMint {
to: String,
batch: Vec<(TokenId, Uint128)>,
msg: Option<Binary>,
},
Burn {
from: String,
token_id: TokenId,
value: Uint128,
},
BatchBurn {
from: String,
batch: Vec<(TokenId, Uint128)>,
},
ApproveAll {
operator: String,
expires: Option<Expiration>,
},
RevokeAll {
operator: String,
},
}
Variants
SendFrom
Fields
from: String
to: String
If to
is not contract, msg
should be None
token_id: TokenId
value: Uint128
SendFrom is a base message to move tokens,
if env.sender
is the owner or has sufficient pre-approval.
BatchSendFrom
BatchSendFrom is a base message to move multiple types of tokens in batch,
if env.sender
is the owner or has sufficient pre-approval.
Mint
Mint is a base message to mint tokens.
BatchMint
Fields
to: String
If to
is not contract, msg
should be None
BatchMint is a base message to mint multiple types of tokens in batch.
Burn
Burn is a base message to burn tokens.
BatchBurn
BatchBurn is a base message to burn multiple types of tokens in batch.
ApproveAll
Allows operator to transfer / send any token from the owner’s account. If expiration is set, then this allowance has a time/height limit
RevokeAll
Fields
operator: String
Remove previously granted ApproveAll permission
Trait Implementations
sourceimpl Clone for Cw1155ExecuteMsg
impl Clone for Cw1155ExecuteMsg
sourcefn clone(&self) -> Cw1155ExecuteMsg
fn clone(&self) -> Cw1155ExecuteMsg
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Cw1155ExecuteMsg
impl Debug for Cw1155ExecuteMsg
sourceimpl<'de> Deserialize<'de> for Cw1155ExecuteMsg
impl<'de> Deserialize<'de> for Cw1155ExecuteMsg
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 JsonSchema for Cw1155ExecuteMsg
impl JsonSchema for Cw1155ExecuteMsg
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 moresourceimpl PartialEq<Cw1155ExecuteMsg> for Cw1155ExecuteMsg
impl PartialEq<Cw1155ExecuteMsg> for Cw1155ExecuteMsg
sourcefn eq(&self, other: &Cw1155ExecuteMsg) -> bool
fn eq(&self, other: &Cw1155ExecuteMsg) -> bool
sourceimpl Serialize for Cw1155ExecuteMsg
impl Serialize for Cw1155ExecuteMsg
impl StructuralPartialEq for Cw1155ExecuteMsg
Auto Trait Implementations
impl RefUnwindSafe for Cw1155ExecuteMsg
impl Send for Cw1155ExecuteMsg
impl Sync for Cw1155ExecuteMsg
impl Unpin for Cw1155ExecuteMsg
impl UnwindSafe for Cw1155ExecuteMsg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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