pub struct CurrencyClient { /* private fields */ }
Expand description
HTTP client wrapper for currency API operations
Implementations§
Source§impl CurrencyClient
impl CurrencyClient
Sourcepub fn with_config(config: Config) -> Result<Self>
pub fn with_config(config: Config) -> Result<Self>
Create a new currency client with custom configuration
Sourcepub async fn get<T>(&self, endpoint: &str) -> Result<T>where
T: DeserializeOwned,
pub async fn get<T>(&self, endpoint: &str) -> Result<T>where
T: DeserializeOwned,
Make a GET request to the specified endpoint
Sourcepub fn has_api_key(&self) -> bool
pub fn has_api_key(&self) -> bool
Check if the client is configured with an API key
Trait Implementations§
Source§impl Clone for CurrencyClient
impl Clone for CurrencyClient
Source§fn clone(&self) -> CurrencyClient
fn clone(&self) -> CurrencyClient
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 moreAuto Trait Implementations§
impl Freeze for CurrencyClient
impl !RefUnwindSafe for CurrencyClient
impl Send for CurrencyClient
impl Sync for CurrencyClient
impl Unpin for CurrencyClient
impl !UnwindSafe for CurrencyClient
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