Struct odra_modules::erc1155_token::Erc1155TokenRef
source · pub struct Erc1155TokenRef { /* private fields */ }Expand description
Reference to the Erc1155Token contract instance.
Implementations§
source§impl Erc1155TokenRef
impl Erc1155TokenRef
pub fn balance_of(&self, owner: &Address, id: &U256) -> U256
pub fn balance_of_batch(&self, owners: &[Address], ids: &[U256]) -> Vec<U256>
pub fn set_approval_for_all(&mut self, operator: &Address, approved: bool)
pub fn is_approved_for_all(&self, owner: &Address, operator: &Address) -> bool
pub fn safe_transfer_from( &mut self, from: &Address, to: &Address, id: &U256, amount: &U256, data: &Option<Bytes> )
pub fn safe_batch_transfer_from( &mut self, from: &Address, to: &Address, ids: &[U256], amounts: &[U256], data: &Option<Bytes> )
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, id: &U256, amount: &U256, data: &Option<Bytes> )
pub fn mint_batch( &mut self, to: &Address, ids: &[U256], amounts: &[U256], data: &Option<Bytes> )
pub fn burn(&mut self, from: &Address, id: &U256, amount: &U256)
pub fn burn_batch(&mut self, from: &Address, ids: &[U256], amounts: &[U256])
pub fn init(&mut self)
Trait Implementations§
source§impl Clone for Erc1155TokenRef
impl Clone for Erc1155TokenRef
source§fn clone(&self) -> Erc1155TokenRef
fn clone(&self) -> Erc1155TokenRef
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 Erc1155TokenRef
impl RefUnwindSafe for Erc1155TokenRef
impl Send for Erc1155TokenRef
impl Sync for Erc1155TokenRef
impl Unpin for Erc1155TokenRef
impl UnwindSafe for Erc1155TokenRef
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