pub struct JettonBurnMessage {
pub query_id: u64,
pub amount: BigUint,
pub response_destination: TonAddress,
pub custom_payload: Option<ArcCell>,
}
Expand description
Creates a body for jetton burn according to TL-B schema:
burn#595f07bc query_id:uint64 amount:(VarUInteger 16)
response_destination:MsgAddress custom_payload:(Maybe ^Cell)
= InternalMsgBody;
Fields§
§query_id: u64
arbitrary request number.
amount: BigUint
amount of burned jettons
response_destination: TonAddress
address where to send a response with confirmation of a successful burn and the rest of the incoming message coins.
custom_payload: Option<ArcCell>
optional custom data (which is used by either sender or receiver jetton wallet for inner logic).
Implementations§
Source§impl JettonBurnMessage
impl JettonBurnMessage
pub fn new(amount: &BigUint) -> 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 JettonBurnMessage
impl Clone for JettonBurnMessage
Source§fn clone(&self) -> JettonBurnMessage
fn clone(&self) -> JettonBurnMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JettonBurnMessage
impl Debug for JettonBurnMessage
Source§impl HasOpcode for JettonBurnMessage
impl HasOpcode for JettonBurnMessage
Source§impl PartialEq for JettonBurnMessage
impl PartialEq for JettonBurnMessage
Source§impl TonMessage for JettonBurnMessage
impl TonMessage for JettonBurnMessage
impl StructuralPartialEq for JettonBurnMessage
Auto Trait Implementations§
impl Freeze for JettonBurnMessage
impl RefUnwindSafe for JettonBurnMessage
impl Send for JettonBurnMessage
impl Sync for JettonBurnMessage
impl Unpin for JettonBurnMessage
impl UnwindSafe for JettonBurnMessage
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