pub struct RedirectBody(/* private fields */);Implementations§
Source§impl RedirectBody
impl RedirectBody
pub fn to(url: &RUMString) -> Self
pub fn temporary(url: &RUMString) -> Self
pub fn permanent(url: &RUMString) -> Self
pub fn location(&self) -> RUMString
pub fn status_code(&self) -> StatusCode
pub fn into_response(self) -> HTMLResponse
Trait Implementations§
Source§impl Clone for RedirectBody
impl Clone for RedirectBody
Source§fn clone(&self) -> RedirectBody
fn clone(&self) -> RedirectBody
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 RedirectBody
impl Debug for RedirectBody
Source§impl PartialEq for RedirectBody
impl PartialEq for RedirectBody
Auto Trait Implementations§
impl Freeze for RedirectBody
impl RefUnwindSafe for RedirectBody
impl Send for RedirectBody
impl Sync for RedirectBody
impl Unpin for RedirectBody
impl UnsafeUnpin for RedirectBody
impl UnwindSafe for RedirectBody
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