Trait spin_sdk::http::conversions::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§
sourcefn into_status_code(self) -> u16
fn into_status_code(self) -> u16
Turn self
into a status code