pub struct RequestInterface { /* private fields */ }
Implementations§
Source§impl RequestInterface
impl RequestInterface
pub fn new() -> Self
pub async fn send_get_request(&self, url: &String) -> Result<Response, String>
pub async fn send_post_request( &self, payload: &Value, url: &String, ) -> Result<Response, String>
pub async fn send_create_task_request( &self, payload: &CreateTaskRequest, enp_postfix: &EnpPostfix, ) -> Result<Value, String>
pub async fn send_get_result_request( &self, payload: &ResultTaskRequest, enp_postfix: &EnpPostfix, ) -> Result<Value, String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestInterface
impl !RefUnwindSafe for RequestInterface
impl Send for RequestInterface
impl Sync for RequestInterface
impl Unpin for RequestInterface
impl !UnwindSafe for RequestInterface
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