pub struct ReqwestPostClient { /* private fields */ }Expand description
Default-backed PostClient — reqwest under the hood. Placed in
the server crate so the service layer stays reqwest-free.
Implementations§
Trait Implementations§
Source§impl PostClient for ReqwestPostClient
impl PostClient for ReqwestPostClient
fn post_json<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
url: &'life1 str,
auth: Option<&'life2 str>,
body: &'life3 Value,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Auto Trait Implementations§
impl Freeze for ReqwestPostClient
impl !RefUnwindSafe for ReqwestPostClient
impl Send for ReqwestPostClient
impl Sync for ReqwestPostClient
impl Unpin for ReqwestPostClient
impl UnsafeUnpin for ReqwestPostClient
impl !UnwindSafe for ReqwestPostClient
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