Skip to main content

EndpointAction

Trait EndpointAction 

Source
pub trait EndpointAction: Display {
    // Required methods
    fn allowed_http_methods(&self) -> &str;
    fn response_content_type(&self) -> &str;
}

Required Methods§

Source

fn allowed_http_methods(&self) -> &str

The allowed HTTP methods for the endpoint.

Source

fn response_content_type(&self) -> &str

The endpoint’s response content type.

Implementors§