Struct ftoken::receiver::Snip20ReceiveMsg [−][src]
pub struct Snip20ReceiveMsg {
pub sender: HumanAddr,
pub from: HumanAddr,
pub amount: Uint128,
pub memo: Option<String>,
pub msg: Option<Binary>,
}
Expand description
Snip20ReceiveMsg should be de/serialized under Receive()
variant in a HandleMsg
Fields
sender: HumanAddr
from: HumanAddr
amount: Uint128
memo: Option<String>
msg: Option<Binary>
Implementations
pub fn new(
sender: HumanAddr,
from: HumanAddr,
amount: Uint128,
memo: Option<String>,
msg: Option<Binary>
) -> Self
serializes the message, and pads it to 256 bytes
pub fn into_cosmos_msg(
self,
callback_code_hash: String,
contract_addr: HumanAddr
) -> StdResult<CosmosMsg>
pub fn into_cosmos_msg(
self,
callback_code_hash: String,
contract_addr: HumanAddr
) -> StdResult<CosmosMsg>
creates a cosmos_msg sending this struct to the named contract
Trait Implementations
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
The name of the generated JSON Schema. Read more
Generates a JSON Schema for this type. Read more
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 more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Snip20ReceiveMsg
impl Send for Snip20ReceiveMsg
impl Sync for Snip20ReceiveMsg
impl Unpin for Snip20ReceiveMsg
impl UnwindSafe for Snip20ReceiveMsg
Blanket Implementations
Mutably borrows from an owned value. Read more