Enum cw1155::Cw1155ExecuteMsg[][src]

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

SendFrom is a base message to move tokens, if env.sender is the owner or has sufficient pre-approval.

Show fields

Fields of SendFrom

from: Stringto: String

If to is not contract, msg should be None

token_id: TokenIdvalue: Uint128msg: Option<Binary>

None means don’t call the receiver interface

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.

Show fields

Fields of BatchSendFrom

from: Stringto: String

if to is not contract, msg should be None

batch: Vec<(TokenId, Uint128)>msg: Option<Binary>

None means don’t call the receiver interface

Mint

Mint is a base message to mint tokens.

Show fields

Fields of Mint

to: String

If to is not contract, msg should be None

token_id: TokenIdvalue: Uint128msg: Option<Binary>

None means don’t call the receiver interface

BatchMint

BatchMint is a base message to mint multiple types of tokens in batch.

Show fields

Fields of BatchMint

to: String

If to is not contract, msg should be None

batch: Vec<(TokenId, Uint128)>msg: Option<Binary>

None means don’t call the receiver interface

Burn

Burn is a base message to burn tokens.

Show fields

Fields of Burn

from: Stringtoken_id: TokenIdvalue: Uint128
BatchBurn

BatchBurn is a base message to burn multiple types of tokens in batch.

Show fields

Fields of BatchBurn

from: Stringbatch: Vec<(TokenId, Uint128)>
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

Show fields

Fields of ApproveAll

operator: Stringexpires: Option<Expiration>
RevokeAll

Remove previously granted ApproveAll permission

Show fields

Fields of RevokeAll

operator: String

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

The name of the generated JSON Schema. Read more

Generates a JSON Schema for this type. Read more

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into a target type. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Performs the conversion.

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

Should always be Self

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Attempts to convert self into a target type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.