pub struct PathAndQuery { /* private fields */ }
Expand description
Represents the path and query from an URI.
path_query = path ["?" query] ["#" fragment]
Implementations§
source§impl PathAndQuery
impl PathAndQuery
sourcepub fn new(
path: String,
query: Option<String>,
fragment: Option<String>,
) -> Self
pub fn new( path: String, query: Option<String>, fragment: Option<String>, ) -> Self
Constructs a new PathAndQuery
.
sourcepub fn with_path_query(path: String, query: String) -> Self
pub fn with_path_query(path: String, query: String) -> Self
Constructs a new PathAndQuery
from the given path and query.
sourcepub fn query_values(&self) -> QueryValues<'_> ⓘ
pub fn query_values(&self) -> QueryValues<'_> ⓘ
Returns an iterator over the query values.
Trait Implementations§
source§impl Clone for PathAndQuery
impl Clone for PathAndQuery
source§fn clone(&self) -> PathAndQuery
fn clone(&self) -> PathAndQuery
Returns a copy 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 PathAndQuery
impl Debug for PathAndQuery
source§impl Display for PathAndQuery
impl Display for PathAndQuery
source§impl FromStr for PathAndQuery
impl FromStr for PathAndQuery
source§impl Hash for PathAndQuery
impl Hash for PathAndQuery
source§impl Ord for PathAndQuery
impl Ord for PathAndQuery
source§fn cmp(&self, other: &PathAndQuery) -> Ordering
fn cmp(&self, other: &PathAndQuery) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PathAndQuery
impl PartialEq for PathAndQuery
source§impl PartialOrd for PathAndQuery
impl PartialOrd for PathAndQuery
impl Eq for PathAndQuery
impl StructuralPartialEq for PathAndQuery
Auto Trait Implementations§
impl Freeze for PathAndQuery
impl RefUnwindSafe for PathAndQuery
impl Send for PathAndQuery
impl Sync for PathAndQuery
impl Unpin for PathAndQuery
impl UnwindSafe for PathAndQuery
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)