pub struct RouteConflict {
pub index1: usize,
pub index2: usize,
pub path: String,
pub method: HttpMethod,
pub location1: Location,
pub location2: Location,
}Expand description
路由冲突信息
描述两个路由之间的冲突
Fields§
§index1: usize第一个路由的索引
index2: usize第二个路由的索引
path: String冲突的路径
method: HttpMethod冲突的 HTTP 方法
location1: Location第一个路由的位置
location2: Location第二个路由的位置
Trait Implementations§
Source§impl Clone for RouteConflict
impl Clone for RouteConflict
Source§fn clone(&self) -> RouteConflict
fn clone(&self) -> RouteConflict
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 moreAuto Trait Implementations§
impl Freeze for RouteConflict
impl RefUnwindSafe for RouteConflict
impl Send for RouteConflict
impl Sync for RouteConflict
impl Unpin for RouteConflict
impl UnwindSafe for RouteConflict
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