Struct hedera::TokenNftTransfer
source · #[non_exhaustive]pub struct TokenNftTransfer {
pub token_id: TokenId,
pub sender: AccountId,
pub receiver: AccountId,
pub serial: u64,
pub is_approved: bool,
}
Expand description
Represents a transfer of an NFT from one account to another.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.token_id: TokenId
The ID of the NFT’s token.
sender: AccountId
The account that the NFT is being transferred from.
receiver: AccountId
The account that the NFT is being transferred to.
serial: u64
The serial number for the NFT being transferred.
is_approved: bool
If true then the transfer is expected to be an approved allowance and the
sender
is expected to be the owner. The default is false.
Trait Implementations§
source§impl Clone for TokenNftTransfer
impl Clone for TokenNftTransfer
source§fn clone(&self) -> TokenNftTransfer
fn clone(&self) -> TokenNftTransfer
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 TokenNftTransfer
impl Debug for TokenNftTransfer
source§impl PartialEq for TokenNftTransfer
impl PartialEq for TokenNftTransfer
source§fn eq(&self, other: &TokenNftTransfer) -> bool
fn eq(&self, other: &TokenNftTransfer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TokenNftTransfer
impl StructuralPartialEq for TokenNftTransfer
Auto Trait Implementations§
impl Freeze for TokenNftTransfer
impl RefUnwindSafe for TokenNftTransfer
impl Send for TokenNftTransfer
impl Sync for TokenNftTransfer
impl Unpin for TokenNftTransfer
impl UnwindSafe for TokenNftTransfer
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request