pub struct NftTransferMessage {
pub query_id: u64,
pub new_owner: TonAddress,
pub response_destination: TonAddress,
pub custom_payload: Option<ArcCell>,
pub forward_ton_amount: BigUint,
pub forward_payload: ArcCell,
pub forward_payload_layout: EitherCellLayout,
}
Expand description
Creates a body for jetton transfer according to TL-B schema:
transfer#5fcc3d14
query_id:uint64
new_owner:MsgAddress
response_destination:MsgAddress
custom_payload:(Maybe ^Cell)
forward_amount:(VarUInteger 16)
forward_payload:(Either Cell ^Cell)
= InternalMsgBody;
Fields§
§query_id: u64
arbitrary request number.
new_owner: TonAddress
address of the new owner of the NFT item.
response_destination: TonAddress
address where to send a response with confirmation of a successful transfer and the rest of the incoming message coins.
custom_payload: Option<ArcCell>
optional custom data.
forward_ton_amount: BigUint
the amount of nanotons to be sent to the destination address.
forward_payload: ArcCell
optional custom data that should be sent to the destination address.
forward_payload_layout: EitherCellLayout
Implementations§
Source§impl NftTransferMessage
impl NftTransferMessage
pub fn new(new_owner: &TonAddress) -> Self
pub fn with_response_destination( &mut self, response_destination: &TonAddress, ) -> &mut Self
pub fn with_custom_payload(&mut self, custom_payload: ArcCell) -> &mut Self
Trait Implementations§
Source§impl Clone for NftTransferMessage
impl Clone for NftTransferMessage
Source§fn clone(&self) -> NftTransferMessage
fn clone(&self) -> NftTransferMessage
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NftTransferMessage
impl Debug for NftTransferMessage
Source§impl HasOpcode for NftTransferMessage
impl HasOpcode for NftTransferMessage
Source§impl PartialEq for NftTransferMessage
impl PartialEq for NftTransferMessage
Source§impl TonMessage for NftTransferMessage
impl TonMessage for NftTransferMessage
Source§impl WithForwardPayload for NftTransferMessage
impl WithForwardPayload for NftTransferMessage
fn set_forward_payload( &mut self, forward_payload: ArcCell, forward_ton_amount: BigUint, )
fn with_forward_payload( &mut self, forward_ton_amount: BigUint, forward_payload: ArcCell, ) -> &mut Self
impl StructuralPartialEq for NftTransferMessage
Auto Trait Implementations§
impl Freeze for NftTransferMessage
impl RefUnwindSafe for NftTransferMessage
impl Send for NftTransferMessage
impl Sync for NftTransferMessage
impl Unpin for NftTransferMessage
impl UnwindSafe for NftTransferMessage
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