pub struct HttpInvestigationApi { /* private fields */ }Expand description
InvestigationApi over HTTP against a running Talahon.
Implementations§
Source§impl HttpInvestigationApi
impl HttpInvestigationApi
Sourcepub fn new(base_url: &str, api_key: impl Into<String>) -> Result<Self>
pub fn new(base_url: &str, api_key: impl Into<String>) -> Result<Self>
Client for the Talahon HTTP API at base_url, authenticating with
api_key (X-Api-Key). Redirects are not followed, so the key is
never forwarded to another origin.
§Errors
base_url is not an http(s) URL with a host, or the HTTP client
cannot be built.
Trait Implementations§
Source§impl InvestigationApi for HttpInvestigationApi
impl InvestigationApi for HttpInvestigationApi
Source§fn submit<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 CaseRequest,
) -> Pin<Box<dyn Future<Output = Result<Submission>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn submit<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 CaseRequest,
) -> Pin<Box<dyn Future<Output = Result<Submission>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
POST /investigate.Auto Trait Implementations§
impl !RefUnwindSafe for HttpInvestigationApi
impl !UnwindSafe for HttpInvestigationApi
impl Forget for HttpInvestigationApi
impl Freeze for HttpInvestigationApi
impl Move for HttpInvestigationApi
impl Send for HttpInvestigationApi
impl Sync for HttpInvestigationApi
impl Unpin for HttpInvestigationApi
impl UnsafeUnpin for HttpInvestigationApi
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