pub struct NftTransfer<'a> {
pub old_owner_id: &'a AccountIdRef,
pub new_owner_id: &'a AccountIdRef,
pub token_ids: &'a [&'a str],
pub authorized_id: Option<&'a AccountIdRef>,
pub memo: Option<&'a str>,
}
Expand description
Data to log for an NFT transfer event. To log this event,
call .emit()
.
Fields§
§old_owner_id: &'a AccountIdRef
§new_owner_id: &'a AccountIdRef
§token_ids: &'a [&'a str]
§memo: Option<&'a str>
Implementations§
Source§impl NftTransfer<'_>
impl NftTransfer<'_>
Sourcepub fn emit(self)
pub fn emit(self)
Logs the event to the host. This is required to ensure that the event is triggered and to consume the event.
Sourcepub fn emit_many(data: &[NftTransfer<'_>])
pub fn emit_many(data: &[NftTransfer<'_>])
Emits an nft transfer event, through env::log_str
,
where each NftTransfer
represents the data of each transfer.
Trait Implementations§
Source§impl<'a> Clone for NftTransfer<'a>
impl<'a> Clone for NftTransfer<'a>
Source§fn clone(&self) -> NftTransfer<'a>
fn clone(&self) -> NftTransfer<'a>
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<'a> Debug for NftTransfer<'a>
impl<'a> Debug for NftTransfer<'a>
Auto Trait Implementations§
impl<'a> Freeze for NftTransfer<'a>
impl<'a> RefUnwindSafe for NftTransfer<'a>
impl<'a> Send for NftTransfer<'a>
impl<'a> Sync for NftTransfer<'a>
impl<'a> Unpin for NftTransfer<'a>
impl<'a> UnwindSafe for NftTransfer<'a>
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