pub enum RedirectTo {
Uri(Uri),
Path(RelativeRef),
}Variants§
Uri(Uri)
Path(RelativeRef)
Implementations§
Trait Implementations§
Source§impl Clone for RedirectTo
impl Clone for RedirectTo
Source§fn clone(&self) -> RedirectTo
fn clone(&self) -> RedirectTo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RedirectTo
impl Debug for RedirectTo
Source§impl<'de> Deserialize<'de> for RedirectTo
impl<'de> Deserialize<'de> for RedirectTo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RedirectTo
impl Display for RedirectTo
impl Eq for RedirectTo
Source§impl From<RelativeRef> for RedirectTo
impl From<RelativeRef> for RedirectTo
Source§fn from(relative_ref: RelativeRef) -> Self
fn from(relative_ref: RelativeRef) -> Self
Converts to this type from the input type.
Source§impl From<Url> for RedirectTo
impl From<Url> for RedirectTo
Source§impl FromStr for RedirectTo
impl FromStr for RedirectTo
Source§impl Hash for RedirectTo
impl Hash for RedirectTo
Source§impl Ord for RedirectTo
impl Ord for RedirectTo
Source§fn cmp(&self, other: &RedirectTo) -> Ordering
fn cmp(&self, other: &RedirectTo) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RedirectTo
impl PartialEq for RedirectTo
Source§impl PartialOrd for RedirectTo
impl PartialOrd for RedirectTo
Source§impl Serialize for RedirectTo
impl Serialize for RedirectTo
impl StructuralPartialEq for RedirectTo
Auto Trait Implementations§
impl Freeze for RedirectTo
impl RefUnwindSafe for RedirectTo
impl Send for RedirectTo
impl Sync for RedirectTo
impl Unpin for RedirectTo
impl UnsafeUnpin for RedirectTo
impl UnwindSafe for RedirectTo
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