pub struct Path(/* private fields */);Expand description
§Http Path
Represents the part of a URL that specifies a resource or endpoint on a server. It comes after the domain name and port (if specified) in a URL and is used to identify a specific resource.
let mut path = Path::default();
assert_eq!(path.as_str(), "/");
path.append("/api/v1/resource");
assert_eq!(path.as_str(), "/api/v1/resource");NOTE: Does not include data super::QueryString
Implementations§
Trait Implementations§
impl Eq for Path
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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