pub enum Erc721Event {
Transfer {
from: Address,
to: Address,
token_id: U256,
},
Approval {
owner: Address,
approved: Address,
token_id: U256,
},
ApprovalForAll {
owner: Address,
operator: Address,
approved: bool,
},
}Variants§
Transfer
@dev This emits when ownership of any NFT changes by any mechanism.
This event emits when NFTs are created (from == 0) and destroyed
(to == 0). Exception: during contract creation, any number of NFTs
may be created and assigned without emitting Transfer. At the time of
any transfer, the approved address for that NFT (if any) is reset to none.
Approval
@dev This emits when the approved address for an NFT is changed or reaffirmed. The zero address indicates there is no approved address. When a Transfer event emits, this also indicates that the approved address for that NFT (if any) is reset to none.
ApprovalForAll
@dev This emits when an operator is enabled or disabled for an owner. The operator can manage all NFTs of the owner.
Trait Implementations§
Source§impl Debug for Erc721Event
impl Debug for Erc721Event
Source§impl<'de> Deserialize<'de> for Erc721Event
impl<'de> Deserialize<'de> for Erc721Event
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Erc721Event
impl RefUnwindSafe for Erc721Event
impl Send for Erc721Event
impl Sync for Erc721Event
impl Unpin for Erc721Event
impl UnwindSafe for Erc721Event
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