pub struct IconifyClient { /* private fields */ }Expand description
Iconify API client
Implementations§
Source§impl IconifyClient
impl IconifyClient
Sourcepub async fn fetch_collection_info(
&self,
collection: &str,
) -> Result<IconifyCollectionInfo>
pub async fn fetch_collection_info( &self, collection: &str, ) -> Result<IconifyCollectionInfo>
Fetch collection information from the Iconify API
Sourcepub async fn fetch_icon(
&self,
collection: &str,
icon_name: &str,
) -> Result<IconifyIcon>
pub async fn fetch_icon( &self, collection: &str, icon_name: &str, ) -> Result<IconifyIcon>
Fetch a single icon from the Iconify API
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IconifyClient
impl !RefUnwindSafe for IconifyClient
impl Send for IconifyClient
impl Sync for IconifyClient
impl Unpin for IconifyClient
impl !UnwindSafe for IconifyClient
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