pub struct Executor { /* private fields */ }Implementations§
Source§impl Executor
impl Executor
pub fn new(api_url: &str, retry_count: u32) -> Self
pub async fn exec_get<RSP>(&self, path: &str) -> ApiClientsResult<RSP>where
RSP: DeserializeOwned,
pub async fn exec_get_with_params<PARAMS, RSP>(
&self,
path: &str,
params: &PARAMS,
) -> ApiClientsResult<RSP>where
PARAMS: Serialize,
RSP: DeserializeOwned,
pub async fn exec_post<PARAMS, RSP>(
&self,
path: &str,
params: &PARAMS,
) -> ApiClientsResult<RSP>where
PARAMS: Serialize,
RSP: DeserializeOwned,
Auto Trait Implementations§
impl Freeze for Executor
impl !RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl !UnwindSafe for Executor
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