pub struct NftOptions {
pub page_number: Option<u32>,
pub page_size: Option<u32>,
pub quote_currency: Option<String>,
pub with_metadata: Option<bool>,
pub no_spam: Option<bool>,
}Expand description
Options for customizing NFT queries.
Fields§
§page_number: Option<u32>Page number for pagination (0-indexed).
page_size: Option<u32>Number of items per page.
quote_currency: Option<String>Quote currency for pricing (e.g., “USD”, “ETH”).
with_metadata: Option<bool>Whether to include metadata.
no_spam: Option<bool>Whether to exclude spam NFTs.
Implementations§
Source§impl NftOptions
impl NftOptions
Sourcepub fn page_number(self, page: u32) -> Self
pub fn page_number(self, page: u32) -> Self
Set page number for pagination.
Sourcepub fn quote_currency<S: Into<String>>(self, currency: S) -> Self
pub fn quote_currency<S: Into<String>>(self, currency: S) -> Self
Set the quote currency.
Sourcepub fn with_metadata(self, include_metadata: bool) -> Self
pub fn with_metadata(self, include_metadata: bool) -> Self
Include or exclude metadata in the response.
Trait Implementations§
Source§impl Clone for NftOptions
impl Clone for NftOptions
Source§fn clone(&self) -> NftOptions
fn clone(&self) -> NftOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NftOptions
impl Debug for NftOptions
Source§impl Default for NftOptions
impl Default for NftOptions
Source§fn default() -> NftOptions
fn default() -> NftOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NftOptions
impl RefUnwindSafe for NftOptions
impl Send for NftOptions
impl Sync for NftOptions
impl Unpin for NftOptions
impl UnwindSafe for NftOptions
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