pub trait LysHttp:
Send
+ Sync
+ Debug {
// Required methods
fn get(
&self,
bearer: &str,
path: &str,
) -> Result<LysAnswer, ServiceEffectError>;
fn post(
&self,
bearer: &str,
path: &str,
body: &Value,
) -> Result<LysAnswer, ServiceEffectError>;
}Expand description
The Lys routes the services bind to, asked with a bearer pass.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".