pub struct PathSegments(pub Vec<String>);Expand description
Extracted path parameters from a matched route.
A request path, split on / and percent-decoded, exactly once per request.
Attached to the request before a crate::RouteBuilder::with_fallback handler runs,
so the fallback reads the same segments the router matched against instead of parsing
the raw URI a second time. Splitting happens before decoding, per RFC 3986 §3.3: a
percent-encoded %2F is an ordinary character inside one segment, never a separator.
Tuple Fields§
§0: Vec<String>Trait Implementations§
Source§impl Clone for PathSegments
impl Clone for PathSegments
Source§fn clone(&self) -> PathSegments
fn clone(&self) -> PathSegments
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 moreSource§impl Debug for PathSegments
impl Debug for PathSegments
impl Eq for PathSegments
Source§impl PartialEq for PathSegments
impl PartialEq for PathSegments
impl StructuralPartialEq for PathSegments
Auto Trait Implementations§
impl Freeze for PathSegments
impl RefUnwindSafe for PathSegments
impl Send for PathSegments
impl Sync for PathSegments
impl Unpin for PathSegments
impl UnsafeUnpin for PathSegments
impl UnwindSafe for PathSegments
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