Struct mirrorworld_sdk_rust::marketplace::Marketplace
source · [−]pub struct Marketplace { /* private fields */ }Implementations
sourceimpl Marketplace
impl Marketplace
pub fn new(api_key: String, env: NetEnv, token: String) -> Marketplace
pub async fn create_collection(
&self,
name: String,
symbol: String,
metadata_uri: String
) -> Result<Option<CreateCollectionData>, Box<dyn Error>>
pub async fn create_sub_collection(
&self,
name: String,
symbol: String,
metadata_uri: String,
parent_coll: String
) -> Result<Option<CreateCollectionData>, Box<dyn Error>>
pub async fn solana_mint_nft(
&self,
payload: GeneralPayload
) -> Result<Option<SolanaMintNftResult>, Box<dyn Error>>
pub async fn listing_nft(
&self,
mint_address: String,
price: f64
) -> Result<Option<NftListing>, Box<dyn Error>>
pub async fn buy_nft(
&self,
mint_address: String,
price: f64
) -> Result<Option<NftListing>, Box<dyn Error>>
pub async fn update_nft_listing(
&self,
mint_address: String,
price: f64
) -> Result<Option<NftListing>, Box<dyn Error>>
pub async fn cancel_nft_listing(
&self,
mint_address: String,
price: f64
) -> Result<Option<NftListing>, Box<dyn Error>>
pub async fn transfer_nft(
&self,
mint_address: String,
to_wallet_address: String
) -> Result<Option<NftListing>, Box<dyn Error>>
pub async fn fetch_nfts_by_mint_address(
&self,
mint_address: Vec<String>,
limit: usize,
offset: usize
) -> Result<Option<SolanaNFTs>, Box<dyn Error>>
pub async fn fetch_nfts_by_creator_address(
&self,
creators: Vec<String>,
limit: usize,
offset: usize
) -> Result<Option<SolanaNFTs>, Box<dyn Error>>
pub async fn fetch_nfts_by_owner_addresses(
&self,
addresses: Vec<String>,
limit: usize,
offset: usize
) -> Result<Option<SolanaNFTs>, Box<dyn Error>>
pub async fn fetch_nft_marketplace_activity(
&self,
mint_address: String
) -> Result<Option<SolanaNFTAuctionActivities>, Box<dyn Error>>
Auto Trait Implementations
impl RefUnwindSafe for Marketplace
impl Send for Marketplace
impl Sync for Marketplace
impl Unpin for Marketplace
impl UnwindSafe for Marketplace
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more