pub struct GetSearchRequest<'a> { /* private fields */ }Expand description
Request for getting currencies, exchanges, icos, people, tags on coinpaprika.com for a given search query /search
Implementations§
Source§impl<'a> GetSearchRequest<'a>
impl<'a> GetSearchRequest<'a>
pub fn new(client: &'a Client, q: &str) -> Self
Sourcepub fn c(&mut self, categories: Vec<&str>) -> &'a mut GetSearchRequest<'_>
pub fn c(&mut self, categories: Vec<&str>) -> &'a mut GetSearchRequest<'_>
One or more categories to search. Available options: "currencies", "exchanges",
"icos", "people", "tags"
Default: ["currencies", "exchanges", "icos", "people", "tags"] (all categories are
returned)
Sourcepub fn modifier(&mut self, modifier: &str) -> &'a mut GetSearchRequest<'_>
pub fn modifier(&mut self, modifier: &str) -> &'a mut GetSearchRequest<'_>
Set modifier for search results. Available options: symbol_search - search only by symbol
(works for currencies only)
Sourcepub fn limit(&mut self, limit: i32) -> &'a mut GetSearchRequest<'_>
pub fn limit(&mut self, limit: i32) -> &'a mut GetSearchRequest<'_>
Limit of results per category (max 250)
Default: 6
pub async fn send(&self) -> Result<Value, Error>
Auto Trait Implementations§
impl<'a> Freeze for GetSearchRequest<'a>
impl<'a> !RefUnwindSafe for GetSearchRequest<'a>
impl<'a> Send for GetSearchRequest<'a>
impl<'a> Sync for GetSearchRequest<'a>
impl<'a> Unpin for GetSearchRequest<'a>
impl<'a> !UnwindSafe for GetSearchRequest<'a>
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