pub struct Cep95ContractRef { /* private fields */ }Expand description
Cep95 Contract Ref.
Trait Implementations§
Source§impl CEP95Interface for Cep95ContractRef
impl CEP95Interface for Cep95ContractRef
Source§fn symbol(&self) -> String
fn symbol(&self) -> String
Returns a short symbol or abbreviation for the NFT token/collection.
Source§fn balance_of(&self, owner: Address) -> U256
fn balance_of(&self, owner: Address) -> U256
Returns the number of NFTs owned by a given account or contract Read more
Source§fn owner_of(&self, token_id: U256) -> Option<Address>
fn owner_of(&self, token_id: U256) -> Option<Address>
Returns the owner of a specific NFT. Read more
Source§fn safe_transfer_from(
&mut self,
from: Address,
to: Address,
token_id: U256,
data: Option<Bytes>,
)
fn safe_transfer_from( &mut self, from: Address, to: Address, token_id: U256, data: Option<Bytes>, )
Performs a recipient check and transfers the ownership of an NFT. Read more
Source§fn transfer_from(&mut self, from: Address, to: Address, token_id: U256)
fn transfer_from(&mut self, from: Address, to: Address, token_id: U256)
Transfers the ownership of an NFT without checking the recipient contract. Read more
Source§fn approve(&mut self, spender: Address, token_id: U256)
fn approve(&mut self, spender: Address, token_id: U256)
Approves another account or contract to transfer a specific NFT. Read more
Source§fn revoke_approval(&mut self, token_id: U256)
fn revoke_approval(&mut self, token_id: U256)
Revokes approval for a specific NFT. Read more
Source§fn approved_for(&self, token_id: U256) -> Option<Address>
fn approved_for(&self, token_id: U256) -> Option<Address>
Gets the approved account or contract for a specific NFT. Read more
Source§fn approve_for_all(&mut self, operator: Address)
fn approve_for_all(&mut self, operator: Address)
Enables operator approval for all of the caller’s NFTs. Read more
Source§fn revoke_approval_for_all(&mut self, operator: Address)
fn revoke_approval_for_all(&mut self, operator: Address)
Revokes operator approval for all of the caller’s NFTs. Read more
Source§impl ContractRef for Cep95ContractRef
impl ContractRef for Cep95ContractRef
Source§impl SchemaErrors for Cep95ContractRef
impl SchemaErrors for Cep95ContractRef
Source§impl SchemaEvents for Cep95ContractRef
impl SchemaEvents for Cep95ContractRef
Source§fn custom_types() -> Vec<Option<CustomType>>
fn custom_types() -> Vec<Option<CustomType>>
Returns a vector of CustomTypes. Read more
Auto Trait Implementations§
impl Freeze for Cep95ContractRef
impl !RefUnwindSafe for Cep95ContractRef
impl !Send for Cep95ContractRef
impl !Sync for Cep95ContractRef
impl Unpin for Cep95ContractRef
impl !UnwindSafe for Cep95ContractRef
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<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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more