Struct ohkami::typed::status::ServiceUnavailable
source · pub struct ServiceUnavailable<B: ResponseBody = ()>(pub B);
Expand description
Type-safe 503 Service Unavailable
response with the ResponseBody
(()
or T: Payload + Serialize
).
Use ()
(default) to represent an empty content.
Tuple Fields§
§0: B
Trait Implementations§
fn into_response(self) -> Response
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more