pub trait RRC721 {
// Required methods
fn name(&self) -> &str;
fn symbol(&self) -> &str;
fn balance_of(&self, owner: Address) -> u64;
fn owner_of(&self, token_id: u64) -> Address;
fn safe_transfer_from(
&mut self,
from: Address,
to: Address,
token_id: u64,
) -> Result<(), Error>;
fn approve(&mut self, to: Address, token_id: u64) -> Result<(), Error>;
fn get_approved(&self, token_id: u64) -> Address;
fn token_uri(&self, token_id: u64) -> String;
fn get_attribute(&self, token_id: u64, key: &str) -> String;
}Required Methods§
fn name(&self) -> &str
fn symbol(&self) -> &str
fn balance_of(&self, owner: Address) -> u64
fn owner_of(&self, token_id: u64) -> Address
fn safe_transfer_from( &mut self, from: Address, to: Address, token_id: u64, ) -> Result<(), Error>
fn approve(&mut self, to: Address, token_id: u64) -> Result<(), Error>
fn get_approved(&self, token_id: u64) -> Address
fn token_uri(&self, token_id: u64) -> String
Sourcefn get_attribute(&self, token_id: u64, key: &str) -> String
fn get_attribute(&self, token_id: u64, key: &str) -> String
On-chain metadata support for small attributes