pub struct NftContractContractRef { /* private fields */ }Expand description
[NftContract] Contract Ref.
Implementations§
Source§impl NftContractContractRef
impl NftContractContractRef
pub fn mint( &mut self, token_owner: Address, token_meta_data: String, token_hash: Maybe<String>, )
pub fn burn(&mut self, token_id: Maybe<u64>, token_hash: Maybe<String>)
pub fn register_owner(&mut self, token_owner: Maybe<Address>) -> String
pub fn transfer( &mut self, token_id: Maybe<u64>, token_hash: Maybe<String>, source_key: Address, target_key: Address, )
pub fn approve( &mut self, spender: Address, token_id: Maybe<u64>, token_hash: Maybe<String>, )
pub fn revoke(&mut self, token_id: Maybe<u64>, token_hash: Maybe<String>)
Trait Implementations§
Source§impl ContractRef for NftContractContractRef
impl ContractRef for NftContractContractRef
Source§impl SchemaEvents for NftContractContractRef
impl SchemaEvents for NftContractContractRef
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 NftContractContractRef
impl !RefUnwindSafe for NftContractContractRef
impl !Send for NftContractContractRef
impl !Sync for NftContractContractRef
impl Unpin for NftContractContractRef
impl !UnwindSafe for NftContractContractRef
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