pub struct AllowanceCheckURL {}Expand description
The URL builder for the Allowance Check endpoint
let t = AllowanceCheckURL::default()
// returns the url for built the endpoint
t.url().unwrap()Trait Implementations§
Source§impl Debug for AllowanceCheckURL
impl Debug for AllowanceCheckURL
Source§impl Default for AllowanceCheckURL
impl Default for AllowanceCheckURL
Source§fn default() -> AllowanceCheckURL
fn default() -> AllowanceCheckURL
Returns the “default value” for a type. Read more
Source§impl Endpoint for AllowanceCheckURL
impl Endpoint for AllowanceCheckURL
type Output = AllowanceCheck
Source§fn endpoint(&self) -> Cow<'static, str>
fn endpoint(&self) -> Cow<'static, str>
Returns the endpoint Url BUT it won’t have any queries attached to it
Source§fn ureq_client(&self, client: &Agent) -> Result<Self::Output, HttpError>
fn ureq_client(&self, client: &Agent) -> Result<Self::Output, HttpError>
Uses a
ureq client to make the API call and handle the response.
The assumption is made that the token is part of the default headers
Requires the ureq feature to be enabledSource§fn ureq(&self, token: &str) -> Result<Self::Output, HttpError>
fn ureq(&self, token: &str) -> Result<Self::Output, HttpError>
Creates a
ureq client to make the API call and handle the response
Requires the ureq feature to be enabledSource§impl EndpointAsync for AllowanceCheckURL
Available on crate features async only.
impl EndpointAsync for AllowanceCheckURL
Available on crate features
async only.Source§fn reqwest_client_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, HttpError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn reqwest_client_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, HttpError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Uses an async
reqwest client to make the API call and handle the response.
The assumption is made that the token is part of the default headers
Requires the reqwest and async features to be enabledSource§fn reqwest_async<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, HttpError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn reqwest_async<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, HttpError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Creates an async
reqwest client to make the API call and handle the response
Requires the reqwest and async features to be enabledAuto Trait Implementations§
impl Freeze for AllowanceCheckURL
impl RefUnwindSafe for AllowanceCheckURL
impl Send for AllowanceCheckURL
impl Sync for AllowanceCheckURL
impl Unpin for AllowanceCheckURL
impl UnwindSafe for AllowanceCheckURL
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