pub struct Redirect {
pub to: String,
}Expand description
Aborts a navigation and navigates to another url instead.
The history gets the url redirected to, not the one that redirected: a navigation that adds
an entry (Nav::goto, a link) adds one for it, and any other (a
replace, back/forward, the first page, a reload) replaces the current entry with it. More
than 20 redirects in a row fail with a 500.
Fields§
§to: StringImplementations§
Trait Implementations§
impl Eq for Redirect
impl StructuralPartialEq for Redirect
Auto Trait Implementations§
impl Forget for Redirect
impl Freeze for Redirect
impl Move for Redirect
impl RefUnwindSafe for Redirect
impl Send for Redirectwhere
RawVecInner: Send,
impl Sync for Redirectwhere
RawVecInner: Sync,
impl Unpin for Redirect
impl UnsafeUnpin for Redirect
impl UnwindSafe for Redirectwhere
RawVecInner: UnwindSafe,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more