Struct leptos_router::LocationChange
source · pub struct LocationChange {
pub value: String,
pub replace: bool,
pub scroll: bool,
pub state: State,
}
Expand description
A description of a navigation.
Fields§
§value: String
The new URL.
replace: bool
If true, the new location will replace the current one in the history stack, i.e., clicking the “back” button will not return to the current location.
scroll: bool
If true, the router will scroll to the top of the page at the end of the navigation.
state: State
The state
that will be added during navigation.
Trait Implementations§
source§impl Clone for LocationChange
impl Clone for LocationChange
source§fn clone(&self) -> LocationChange
fn clone(&self) -> LocationChange
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 LocationChange
impl Debug for LocationChange
source§impl Default for LocationChange
impl Default for LocationChange
source§impl PartialEq for LocationChange
impl PartialEq for LocationChange
impl StructuralPartialEq for LocationChange
Auto Trait Implementations§
impl Freeze for LocationChange
impl RefUnwindSafe for LocationChange
impl !Send for LocationChange
impl !Sync for LocationChange
impl Unpin for LocationChange
impl UnwindSafe for LocationChange
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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