pub enum RouteSource {
RequestEndpoint,
ControllerMethod,
}Expand description
Distinguishes between IRequest-based and Controller-based endpoints.
Variants§
RequestEndpoint
Endpoint registered via #[endpoint] on an impl IRequest block.
ControllerMethod
Endpoint registered via #[controller] with method attributes.
Trait Implementations§
Source§impl Clone for RouteSource
impl Clone for RouteSource
Source§fn clone(&self) -> RouteSource
fn clone(&self) -> RouteSource
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 moreimpl Copy for RouteSource
Source§impl Debug for RouteSource
impl Debug for RouteSource
impl Eq for RouteSource
Source§impl PartialEq for RouteSource
impl PartialEq for RouteSource
Source§fn eq(&self, other: &RouteSource) -> bool
fn eq(&self, other: &RouteSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RouteSource
Auto Trait Implementations§
impl Freeze for RouteSource
impl RefUnwindSafe for RouteSource
impl Send for RouteSource
impl Sync for RouteSource
impl Unpin for RouteSource
impl UnsafeUnpin for RouteSource
impl UnwindSafe for RouteSource
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