pub struct ListTokensParams {
pub order_type: Option<String>,
pub order_flag: Option<SortDirection>,
pub search_word: Option<String>,
pub network: Option<String>,
pub style: Option<String>,
pub include_nsfw: Option<bool>,
pub page_number: Option<i64>,
pub page_size: Option<i64>,
}Expand description
Filters, sorting and paging for
FyuzClient::list_tokens.
Fields§
§order_type: Option<String>Field to sort by, e.g. marketcap, createdAt, score.
order_flag: Option<SortDirection>Sort direction.
search_word: Option<String>Free-text match on name, symbol or address.
network: Option<String>Chain slug.
style: Option<String>Exact-match filter on generated image style (all = no filter).
include_nsfw: Option<bool>Include tokens flagged NSFW.
page_number: Option<i64>1-based page number. Server default 1.
page_size: Option<i64>Rows per page. Server default 20.
Implementations§
Source§impl ListTokensParams
impl ListTokensParams
Sourcepub fn order_type(self, order_type: impl Into<String>) -> Self
pub fn order_type(self, order_type: impl Into<String>) -> Self
Sort by this field.
Sourcepub fn order_flag(self, order_flag: SortDirection) -> Self
pub fn order_flag(self, order_flag: SortDirection) -> Self
Sort in this direction.
Sourcepub fn search_word(self, search_word: impl Into<String>) -> Self
pub fn search_word(self, search_word: impl Into<String>) -> Self
Free-text search on name, symbol or address.
Sourcepub fn include_nsfw(self, include_nsfw: bool) -> Self
pub fn include_nsfw(self, include_nsfw: bool) -> Self
Include NSFW-flagged tokens.
Sourcepub fn page_number(self, page_number: i64) -> Self
pub fn page_number(self, page_number: i64) -> Self
Request a specific 1-based page.
Trait Implementations§
Source§impl Clone for ListTokensParams
impl Clone for ListTokensParams
Source§impl Debug for ListTokensParams
impl Debug for ListTokensParams
Auto Trait Implementations§
impl Freeze for ListTokensParams
impl RefUnwindSafe for ListTokensParams
impl Send for ListTokensParams
impl Sync for ListTokensParams
impl Unpin for ListTokensParams
impl UnsafeUnpin for ListTokensParams
impl UnwindSafe for ListTokensParams
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