pub trait Service {
type Output;
// Required methods
fn new_request(
&self,
method: Option<HttpMethods>,
url: &str,
user_auth: Option<(&str, &str)>,
body: Option<Value>,
) -> Result<Self::Output, String>;
fn invoke_request(&self, request: Self::Output) -> Result<Value, String>;
}Required Associated Types§
Required Methods§
fn new_request( &self, method: Option<HttpMethods>, url: &str, user_auth: Option<(&str, &str)>, body: Option<Value>, ) -> Result<Self::Output, String>
fn invoke_request(&self, request: Self::Output) -> Result<Value, String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".