Struct mercury_rust::client::Client [−][src]
pub struct Client { /* fields omitted */ }
Implementations
pub async fn get<A, B>(
&self,
path: &str,
param: Vec<&str>,
data: B
) -> Result<A> where
A: DeserializeOwned + Send + 'static,
B: Serialize,
[src]pub async fn post<A, B>(
&self,
path: &str,
param: Vec<&str>,
data: B
) -> Result<A> where
A: DeserializeOwned + Send + 'static,
B: Serialize,
[src]pub async fn put<A, B>(
&self,
path: &str,
param: Vec<&str>,
data: B
) -> Result<A> where
A: DeserializeOwned + Send + 'static,
B: Serialize,
[src]Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Client
impl UnwindSafe for Client
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more