Struct abstractapi::AbstractApi
source · [−]pub struct AbstractApi { /* private fields */ }
Expand description
Client for Abstract API.
Implementations
Creates a new Abstract API client with the default HTTP client.
Creates a new Abstract API client that uses the given HTTP client.
Creates a new Abstract API client with the given API key set.
Creates a new Abstract API client with the given API keys set.
Sets an API key for an API.
Sets the API keys for specified APIs.
Upstream documentation: https://app.abstractapi.com/api/ip-geolocation/documentation
Upstream documentation: https://app.abstractapi.com/api/holidays/documentation
pub fn get_latest_exchange_rates<S: AsRef<str>>(
&self,
base: S,
target: Option<S>
) -> Result<ExchangeRatesResult, Error>
pub fn get_latest_exchange_rates<S: AsRef<str>>(
&self,
base: S,
target: Option<S>
) -> Result<ExchangeRatesResult, Error>
Upstream documentation: https://app.abstractapi.com/api/exchange-rates/documentation
pub fn get_historical_exchange_rates<S: AsRef<str>>(
&self,
base: S,
target: Option<S>,
date: S
) -> Result<ExchangeRatesResult, Error>
pub fn get_historical_exchange_rates<S: AsRef<str>>(
&self,
base: S,
target: Option<S>,
date: S
) -> Result<ExchangeRatesResult, Error>
Upstream documentation: https://app.abstractapi.com/api/exchange-rates/documentation
pub fn convert_currency<S: AsRef<str>>(
&self,
base: S,
target: S,
date: Option<S>,
base_amount: Option<u64>
) -> Result<ConvertedExchangeRate, Error>
pub fn convert_currency<S: AsRef<str>>(
&self,
base: S,
target: S,
date: Option<S>,
base_amount: Option<u64>
) -> Result<ConvertedExchangeRate, Error>
Upstream documentation: https://app.abstractapi.com/api/exchange-rates/documentation
pub fn get_company_details<S: AsRef<str>>(
&self,
domain: Option<S>,
email: Option<S>
) -> Result<CompanyDetails, Error>
pub fn get_company_details<S: AsRef<str>>(
&self,
domain: Option<S>,
email: Option<S>
) -> Result<CompanyDetails, Error>
Upstream documentation: https://app.abstractapi.com/api/company-enrichment/documentation
Upstream documentation: https://app.abstractapi.com/api/timezone/documentation
pub fn convert_time<S: AsRef<str>>(
&self,
base_location: S,
base_datetime: S,
target_location: S
) -> Result<ConvertedTime, Error>
pub fn convert_time<S: AsRef<str>>(
&self,
base_location: S,
base_datetime: S,
target_location: S
) -> Result<ConvertedTime, Error>
Upstream documentation: https://app.abstractapi.com/api/timezone/documentation
pub fn validate_email<S: AsRef<str>>(
&self,
email: S,
auto_correct: bool
) -> Result<EmailDetails, Error>
pub fn validate_email<S: AsRef<str>>(
&self,
email: S,
auto_correct: bool
) -> Result<EmailDetails, Error>
Upstream documentation: https://app.abstractapi.com/api/email-validation/documentation
Upstream documentation: https://app.abstractapi.com/api/phone-validation/documentation
Upstream documentation: https://app.abstractapi.com/api/vat/documentation
Upstream documentation: https://app.abstractapi.com/api/vat/documentation
Upstream documentation: https://app.abstractapi.com/api/vat/documentation