pub struct JettonTransferNotificationMessage {
pub query_id: u64,
pub amount: BigUint,
pub sender: TonAddress,
pub forward_payload: ArcCell,
pub forward_payload_layout: EitherCellLayout,
}Expand description
Creates a body for jetton transfer notification according to TL-B schema:
transfer_notification#7362d09c query_id:uint64 amount:(VarUInteger 16)
sender:MsgAddress forward_payload:(Either Cell ^Cell)
= InternalMsgBody;Fields§
§query_id: u64should be equal with request’s query_id.
amount: BigUintamount of transferred jettons.
sender: TonAddressis address of the previous owner of transferred jettons.
forward_payload: ArcCelloptional custom data that should be sent to the destination address.
forward_payload_layout: EitherCellLayoutImplementations§
Source§impl JettonTransferNotificationMessage
impl JettonTransferNotificationMessage
pub fn new(sender: &TonAddress, amount: &BigUint) -> Self
pub fn with_forward_payload(&mut self, forward_payload: ArcCell) -> &mut Self
pub fn set_either_cell_layout(&mut self, layout: EitherCellLayout) -> &mut Self
Trait Implementations§
Source§impl Clone for JettonTransferNotificationMessage
impl Clone for JettonTransferNotificationMessage
Source§fn clone(&self) -> JettonTransferNotificationMessage
fn clone(&self) -> JettonTransferNotificationMessage
Returns a duplicate 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 PartialEq for JettonTransferNotificationMessage
impl PartialEq for JettonTransferNotificationMessage
Source§fn eq(&self, other: &JettonTransferNotificationMessage) -> bool
fn eq(&self, other: &JettonTransferNotificationMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JettonTransferNotificationMessage
Auto Trait Implementations§
impl Freeze for JettonTransferNotificationMessage
impl RefUnwindSafe for JettonTransferNotificationMessage
impl Send for JettonTransferNotificationMessage
impl Sync for JettonTransferNotificationMessage
impl Unpin for JettonTransferNotificationMessage
impl UnwindSafe for JettonTransferNotificationMessage
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