pub struct TokenRef { /* private fields */ }Implementations§
Source§impl TokenRef
impl TokenRef
pub fn new() -> CreateBuilder<<Token as ContractEnv>::Env, Self, Unset<<<Token as ContractEnv>::Env as Environment>::Hash>, Unset<u64>, Unset<<<Token as ContractEnv>::Env as Environment>::Balance>, Set<ExecutionInput<EmptyArgumentList>>, Unset<Salt>, Set<ReturnType<Self>>>
Trait Implementations§
Source§impl AsMut<<<Token as ContractEnv>::Env as Environment>::AccountId> for TokenRef
impl AsMut<<<Token as ContractEnv>::Env as Environment>::AccountId> for TokenRef
Source§fn as_mut(
&mut self,
) -> &mut <<Token as ContractEnv>::Env as Environment>::AccountId
fn as_mut( &mut self, ) -> &mut <<Token as ContractEnv>::Env as Environment>::AccountId
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<<<Token as ContractEnv>::Env as Environment>::AccountId> for TokenRef
impl AsRef<<<Token as ContractEnv>::Env as Environment>::AccountId> for TokenRef
Source§fn as_ref(&self) -> &<<Token as ContractEnv>::Env as Environment>::AccountId
fn as_ref(&self) -> &<<Token as ContractEnv>::Env as Environment>::AccountId
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl ConstructorReturnType<TokenRef> for Token
impl ConstructorReturnType<TokenRef> for Token
Source§impl ContractEnv for TokenRef
impl ContractEnv for TokenRef
Source§impl Decode for TokenRef
impl Decode for TokenRef
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Encode for TokenRef
impl Encode for TokenRef
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>( &self, f: __CodecUsingEncodedCallback, ) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl FromAccountId<<Token as ContractEnv>::Env> for TokenRef
impl FromAccountId<<Token as ContractEnv>::Env> for TokenRef
Source§fn from_account_id(
account_id: <<Token as ContractEnv>::Env as Environment>::AccountId,
) -> Self
fn from_account_id( account_id: <<Token as ContractEnv>::Env as Environment>::AccountId, ) -> Self
Creates the contract instance from the account ID of the already instantiated
contract.
Source§impl PSP34 for TokenRef
impl PSP34 for TokenRef
Source§type collectionIdOutput = <<<TokenRef as PSP34>::__ink_TraitInfo as TraitCallForwarder>::Forwarder as PSP34>::collectionIdOutput
type collectionIdOutput = <<<TokenRef as PSP34>::__ink_TraitInfo as TraitCallForwarder>::Forwarder as PSP34>::collectionIdOutput
Output type of the respective trait message.
Source§type totalSupplyOutput = <<<TokenRef as PSP34>::__ink_TraitInfo as TraitCallForwarder>::Forwarder as PSP34>::totalSupplyOutput
type totalSupplyOutput = <<<TokenRef as PSP34>::__ink_TraitInfo as TraitCallForwarder>::Forwarder as PSP34>::totalSupplyOutput
Output type of the respective trait message.
Source§type balanceOfOutput = <<<TokenRef as PSP34>::__ink_TraitInfo as TraitCallForwarder>::Forwarder as PSP34>::balanceOfOutput
type balanceOfOutput = <<<TokenRef as PSP34>::__ink_TraitInfo as TraitCallForwarder>::Forwarder as PSP34>::balanceOfOutput
Output type of the respective trait message.
Source§type allowanceOutput = <<<TokenRef as PSP34>::__ink_TraitInfo as TraitCallForwarder>::Forwarder as PSP34>::allowanceOutput
type allowanceOutput = <<<TokenRef as PSP34>::__ink_TraitInfo as TraitCallForwarder>::Forwarder as PSP34>::allowanceOutput
Output type of the respective trait message.
Source§type transferOutput = <<<TokenRef as PSP34>::__ink_TraitInfo as TraitCallForwarder>::Forwarder as PSP34>::transferOutput
type transferOutput = <<<TokenRef as PSP34>::__ink_TraitInfo as TraitCallForwarder>::Forwarder as PSP34>::transferOutput
Output type of the respective trait message.
Source§type approveOutput = <<<TokenRef as PSP34>::__ink_TraitInfo as TraitCallForwarder>::Forwarder as PSP34>::approveOutput
type approveOutput = <<<TokenRef as PSP34>::__ink_TraitInfo as TraitCallForwarder>::Forwarder as PSP34>::approveOutput
Output type of the respective trait message.
Source§type ownerOfOutput = <<<TokenRef as PSP34>::__ink_TraitInfo as TraitCallForwarder>::Forwarder as PSP34>::ownerOfOutput
type ownerOfOutput = <<<TokenRef as PSP34>::__ink_TraitInfo as TraitCallForwarder>::Forwarder as PSP34>::ownerOfOutput
Output type of the respective trait message.
Source§fn collection_id(&self) -> Self::collectionIdOutput
fn collection_id(&self) -> Self::collectionIdOutput
Returns the collection
Id of the NFT token. Read moreSource§fn total_supply(&self) -> Self::totalSupplyOutput
fn total_supply(&self) -> Self::totalSupplyOutput
Returns the current total supply of the NFT.
Source§fn balance_of(
&self,
owner: <<Token as ContractEnv>::Env as Environment>::AccountId,
) -> Self::balanceOfOutput
fn balance_of( &self, owner: <<Token as ContractEnv>::Env as Environment>::AccountId, ) -> Self::balanceOfOutput
Returns the account balance for the specified
owner. Read moreSource§fn allowance(
&self,
owner: <<Token as ContractEnv>::Env as Environment>::AccountId,
operator: <<Token as ContractEnv>::Env as Environment>::AccountId,
id: Option<Id>,
) -> Self::allowanceOutput
fn allowance( &self, owner: <<Token as ContractEnv>::Env as Environment>::AccountId, operator: <<Token as ContractEnv>::Env as Environment>::AccountId, id: Option<Id>, ) -> Self::allowanceOutput
Source§fn transfer(
&mut self,
to: <<Token as ContractEnv>::Env as Environment>::AccountId,
id: Id,
data: Vec<u8>,
) -> Self::transferOutput
fn transfer( &mut self, to: <<Token as ContractEnv>::Env as Environment>::AccountId, id: Id, data: Vec<u8>, ) -> Self::transferOutput
Transfer approved or owned token from caller. Read more
Source§fn approve(
&mut self,
operator: <<Token as ContractEnv>::Env as Environment>::AccountId,
id: Option<Id>,
approved: bool,
) -> Self::approveOutput
fn approve( &mut self, operator: <<Token as ContractEnv>::Env as Environment>::AccountId, id: Option<Id>, approved: bool, ) -> Self::approveOutput
Approves
operator to withdraw the id token from the caller’s account.
If id is None approves or disapproves the operator for all tokens of the caller. Read moreSource§fn owner_of(&self, id: Id) -> Self::ownerOfOutput
fn owner_of(&self, id: Id) -> Self::ownerOfOutput
Returns the owner of the token if any.
Source§impl StorageLayout for TokenRef
impl StorageLayout for TokenRef
Source§impl ToAccountId<<Token as ContractEnv>::Env> for TokenRef
impl ToAccountId<<Token as ContractEnv>::Env> for TokenRef
Source§fn to_account_id(
&self,
) -> <<Token as ContractEnv>::Env as Environment>::AccountId
fn to_account_id( &self, ) -> <<Token as ContractEnv>::Env as Environment>::AccountId
Returns the underlying account identifier of the instantiated contract.
Source§impl TraitCallBuilder for TokenRef
impl TraitCallBuilder for TokenRef
impl EncodeLike for TokenRef
impl Eq for TokenRef
impl StructuralPartialEq for TokenRef
Auto Trait Implementations§
impl Freeze for TokenRef
impl RefUnwindSafe for TokenRef
impl Send for TokenRef
impl Sync for TokenRef
impl Unpin for TokenRef
impl UnwindSafe for TokenRef
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<C> ConstructorReturnType<C> for C
impl<C> ConstructorReturnType<C> for C
Source§fn ok(value: C) -> <C as ConstructorReturnType<C>>::Output
fn ok(value: C) -> <C as ConstructorReturnType<C>>::Output
Construct a success value of the
Output type.Source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.Source§impl<P, Key> StorableHint<Key> for Pwhere
P: Packed,
Key: StorageKey,
impl<P, Key> StorableHint<Key> for Pwhere
P: Packed,
Key: StorageKey,
Source§impl<P> StorageKey for Pwhere
P: Packed,
impl<P> StorageKey for Pwhere
P: Packed,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.