pub enum RedirectStatus {
MultipleChoices,
MovedPermanently,
Found,
SeeOther,
TemporaryRedirect,
PermanentRedirect,
}
Expand description
The subset of http statuses that indicate redirection
The default is RedirectStatus::Found
Variants§
Trait Implementations§
source§impl Clone for RedirectStatus
impl Clone for RedirectStatus
source§fn clone(&self) -> RedirectStatus
fn clone(&self) -> RedirectStatus
Returns a copy 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 RedirectStatus
impl Debug for RedirectStatus
source§impl Default for RedirectStatus
impl Default for RedirectStatus
source§fn default() -> RedirectStatus
fn default() -> RedirectStatus
Returns the “default value” for a type. Read more
source§impl From<RedirectStatus> for Status
impl From<RedirectStatus> for Status
source§fn from(value: RedirectStatus) -> Self
fn from(value: RedirectStatus) -> Self
Converts to this type from the input type.
source§impl PartialEq for RedirectStatus
impl PartialEq for RedirectStatus
source§fn eq(&self, other: &RedirectStatus) -> bool
fn eq(&self, other: &RedirectStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RedirectStatus
impl Eq for RedirectStatus
impl StructuralEq for RedirectStatus
impl StructuralPartialEq for RedirectStatus
Auto Trait Implementations§
impl RefUnwindSafe for RedirectStatus
impl Send for RedirectStatus
impl Sync for RedirectStatus
impl Unpin for RedirectStatus
impl UnwindSafe for RedirectStatus
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more