pub struct HttpClientAdapter<T: HttpClient> { /* private fields */ }Expand description
Adapter to add admin header support to existing HttpClient implementations
Implementations§
Source§impl<T: HttpClient> HttpClientAdapter<T>
impl<T: HttpClient> HttpClientAdapter<T>
Trait Implementations§
Source§impl<T: HttpClient> HttpClientWithAdminSupport for HttpClientAdapter<T>
impl<T: HttpClient> HttpClientWithAdminSupport for HttpClientAdapter<T>
Source§fn get_value_with_admin_override<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
url: &'life1 str,
admin_tenant: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_value_with_admin_override<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
url: &'life1 str,
admin_tenant: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Perform a GET request with optional admin override header
Auto Trait Implementations§
impl<T> Freeze for HttpClientAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for HttpClientAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for HttpClientAdapter<T>
impl<T> Sync for HttpClientAdapter<T>
impl<T> Unpin for HttpClientAdapter<T>where
T: Unpin,
impl<T> UnwindSafe for HttpClientAdapter<T>where
T: UnwindSafe,
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