Struct ohkami::typed::status::UnavailableForLegalReasons
source · pub struct UnavailableForLegalReasons<B: ResponseBody = ()>(pub B);
Expand description
Type-safe 451 Unavailable For Legal Reasons
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