pub struct NFTManager;Implementations§
Source§impl NFTManager
impl NFTManager
Sourcepub async fn create_nft_collection(
client: Arc<Aptos>,
wallet: Arc<Wallet>,
name: &str,
description: &str,
uri: &str,
max_amount: Option<u64>,
) -> Result<Value, String>
pub async fn create_nft_collection( client: Arc<Aptos>, wallet: Arc<Wallet>, name: &str, description: &str, uri: &str, max_amount: Option<u64>, ) -> Result<Value, String>
create nft collection
Sourcepub async fn create_nft(
client: Arc<Aptos>,
wallet: Arc<Wallet>,
collection: &str,
name: &str,
description: &str,
supply: u64,
uri: &str,
royalty_points_per_million: u64,
) -> Result<Value, String>
pub async fn create_nft( client: Arc<Aptos>, wallet: Arc<Wallet>, collection: &str, name: &str, description: &str, supply: u64, uri: &str, royalty_points_per_million: u64, ) -> Result<Value, String>
create nft
Sourcepub async fn transfer_nft(
client: Arc<Aptos>,
wallet: Arc<Wallet>,
token_id: &str,
recipient: &str,
) -> Result<Value, String>
pub async fn transfer_nft( client: Arc<Aptos>, wallet: Arc<Wallet>, token_id: &str, recipient: &str, ) -> Result<Value, String>
transfer nft
Auto Trait Implementations§
impl Freeze for NFTManager
impl RefUnwindSafe for NFTManager
impl Send for NFTManager
impl Sync for NFTManager
impl Unpin for NFTManager
impl UnwindSafe for NFTManager
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more