Struct odra_modules::erc721_token::Erc721TokenRef
source · pub struct Erc721TokenRef { /* private fields */ }Expand description
Reference to the Erc721Token contract instance.
Implementations§
source§impl Erc721TokenRef
impl Erc721TokenRef
pub fn name(&self) -> String
pub fn symbol(&self) -> String
pub fn base_uri(&self) -> String
pub fn balance_of(&self, owner: &Address) -> U256
pub fn owner_of(&self, token_id: &U256) -> Address
pub fn safe_transfer_from( &mut self, from: &Address, to: &Address, token_id: &U256 )
pub fn safe_transfer_from_with_data( &mut self, from: &Address, to: &Address, token_id: &U256, data: &Bytes )
pub fn transfer_from(&mut self, from: &Address, to: &Address, token_id: &U256)
pub fn approve(&mut self, approved: &Option<Address>, token_id: &U256)
pub fn set_approval_for_all(&mut self, operator: &Address, approved: bool)
pub fn get_approved(&self, token_id: &U256) -> Option<Address>
pub fn is_approved_for_all(&self, owner: &Address, operator: &Address) -> bool
pub fn renounce_ownership(&mut self)
pub fn transfer_ownership(&mut self, new_owner: &Address)
pub fn owner(&self) -> Address
pub fn mint(&mut self, to: &Address, token_id: &U256)
pub fn burn(&mut self, token_id: &U256)
pub fn init(&mut self, name: String, symbol: String, base_uri: String)
Trait Implementations§
source§impl Clone for Erc721TokenRef
impl Clone for Erc721TokenRef
source§fn clone(&self) -> Erc721TokenRef
fn clone(&self) -> Erc721TokenRef
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 moreAuto Trait Implementations§
impl Freeze for Erc721TokenRef
impl RefUnwindSafe for Erc721TokenRef
impl Send for Erc721TokenRef
impl Sync for Erc721TokenRef
impl Unpin for Erc721TokenRef
impl UnwindSafe for Erc721TokenRef
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