pub struct Redirect { /* private fields */ }
Implementations§
source§impl Redirect
impl Redirect
pub fn found( location: impl TryInto<HeaderValue, Error = InvalidHeaderValue> ) -> Result<Self, RedirectError>
pub fn see_other( location: impl TryInto<HeaderValue, Error = InvalidHeaderValue> ) -> Result<Self, RedirectError>
pub fn temporary( location: impl TryInto<HeaderValue, Error = InvalidHeaderValue> ) -> Result<Self, RedirectError>
pub fn permanent( location: impl TryInto<HeaderValue, Error = InvalidHeaderValue> ) -> Result<Self, RedirectError>
pub fn created( location: impl TryInto<HeaderValue, Error = InvalidHeaderValue> ) -> Result<Self, RedirectError>
Trait Implementations§
source§impl IntoResponse for Redirect
impl IntoResponse for Redirect
fn into_response(self) -> Response
fn into_json_response(self) -> Responsewhere
Self: Sized,
fn into_html_response(self) -> Responsewhere
Self: Sized,
Auto Trait Implementations§
impl RefUnwindSafe for Redirect
impl Send for Redirect
impl Sync for Redirect
impl Unpin for Redirect
impl UnwindSafe for Redirect
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