pub struct HandlerReturn {
pub status: u16,
pub text: String,
}
Expand description
Generic page error return - doesn’t require ctx
Fields§
§status: u16
status code (default: 200)
text: String
body text
Trait Implementations§
Source§impl Clone for HandlerReturn
impl Clone for HandlerReturn
Source§fn clone(&self) -> HandlerReturn
fn clone(&self) -> HandlerReturn
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HandlerReturn
impl Debug for HandlerReturn
Source§impl Default for HandlerReturn
impl Default for HandlerReturn
Auto Trait Implementations§
impl Freeze for HandlerReturn
impl RefUnwindSafe for HandlerReturn
impl Send for HandlerReturn
impl Sync for HandlerReturn
impl Unpin for HandlerReturn
impl UnwindSafe for HandlerReturn
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