spin_sdk::http::conversions

Trait IntoStatusCode

Source
pub trait IntoStatusCode {
    // Required method
    fn into_status_code(self) -> u16;
}
Expand description

A trait for any type that can be turned into a Response status code

Required Methods§

Source

fn into_status_code(self) -> u16

Turn self into a status code

Implementations on Foreign Types§

Source§

impl IntoStatusCode for u16

Source§

impl IntoStatusCode for StatusCode

Implementors§