pub struct OwnerInfoMessage {
pub query_id: u64,
pub item_id: BigUint,
pub initiator: TonAddress,
pub owner: TonAddress,
pub data: ArcCell,
pub revoked_at: u64,
pub content: Option<ArcCell>,
}
Expand description
Creates a body for sbt ownership proof according to TL-B schema:
owner_info#0dd607e3
query_id:uint64
item_id:uint256
initiator:MsgAddress
owner:MsgAddress
data:^Cell
revoked_at:uint64
content:(Maybe ^Cell)
= InternalMsgBody;
Fields§
§query_id: u64
arbitrary request number.
item_id: BigUint
id of NFT.
initiator: TonAddress
address of request initiator.
owner: TonAddress
current owner’s address.
data: ArcCell
data cell passed in prove_ownership.
revoked_at: u64
unix time when SBT was revoked, 0 if it was not.
content: Option<ArcCell>
NFT’s content, it is passed if with_content was true in prove_ownership.
Implementations§
Source§impl OwnerInfoMessage
impl OwnerInfoMessage
pub fn new( item_id: BigUint, owner: &TonAddress, initiator: &TonAddress, data: ArcCell, revoked_at: u64, content: Option<ArcCell>, ) -> Self
Trait Implementations§
Source§impl Clone for OwnerInfoMessage
impl Clone for OwnerInfoMessage
Source§fn clone(&self) -> OwnerInfoMessage
fn clone(&self) -> OwnerInfoMessage
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 OwnerInfoMessage
impl Debug for OwnerInfoMessage
Source§impl HasOpcode for OwnerInfoMessage
impl HasOpcode for OwnerInfoMessage
Source§impl PartialEq for OwnerInfoMessage
impl PartialEq for OwnerInfoMessage
Source§impl TonMessage for OwnerInfoMessage
impl TonMessage for OwnerInfoMessage
impl StructuralPartialEq for OwnerInfoMessage
Auto Trait Implementations§
impl Freeze for OwnerInfoMessage
impl RefUnwindSafe for OwnerInfoMessage
impl Send for OwnerInfoMessage
impl Sync for OwnerInfoMessage
impl Unpin for OwnerInfoMessage
impl UnwindSafe for OwnerInfoMessage
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