Skip to main content

Endpoint

Trait Endpoint 

Source
pub trait Endpoint {
    type Response: DeserializeOwned;
    type Params: Default;
    type Query: Default;

    const METHOD: Method;
    const PATH: &'static str;
}
Expand description

Describes a typed API route.

Required Associated Constants§

Source

const METHOD: Method

Source

const PATH: &'static str

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§