pub struct WellKnownRoute {
pub path: &'static str,
pub handler_fn: fn(&AppContext) -> Router,
pub methods: &'static [Method],
}Fields§
§path: &'static str§handler_fn: fn(&AppContext) -> Router§methods: &'static [Method]Trait Implementations§
Source§impl Clone for WellKnownRoute
impl Clone for WellKnownRoute
Source§fn clone(&self) -> WellKnownRoute
fn clone(&self) -> WellKnownRoute
Returns a duplicate 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 WellKnownRoute
impl Debug for WellKnownRoute
impl Collect for WellKnownRoute
impl Copy for WellKnownRoute
Auto Trait Implementations§
impl Freeze for WellKnownRoute
impl RefUnwindSafe for WellKnownRoute
impl Send for WellKnownRoute
impl Sync for WellKnownRoute
impl Unpin for WellKnownRoute
impl UnwindSafe for WellKnownRoute
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§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