pub trait Guest {
// Required methods
fn handle(req: HttpRequest) -> HttpResponse;
fn get_migrations() -> Vec<String>;
fn get_manifest() -> Manifest;
fn get_resources() -> Vec<String>;
fn authenticate(headers: Vec<(String, String)>) -> Result<UserContext, u16>;
}Required Methods§
fn handle(req: HttpRequest) -> HttpResponse
fn get_migrations() -> Vec<String>
fn get_manifest() -> Manifest
fn get_resources() -> Vec<String>
fn authenticate(headers: Vec<(String, String)>) -> Result<UserContext, u16>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.