pub struct UriParts {
pub scheme: Option<String>,
pub authority: Option<String>,
pub path: String,
pub query: Option<String>,
pub fragment: Option<String>,
}Expand description
Basic URI parts extracted with lightweight string splitting.
Fields§
§scheme: Option<String>The URI scheme when a valid scheme prefix exists.
The authority component when the URI uses //authority syntax.
path: StringThe path component, which may be empty.
query: Option<String>The query without the leading ? when present.
fragment: Option<String>The fragment without the leading # when present.
Trait Implementations§
impl Eq for UriParts
impl StructuralPartialEq for UriParts
Auto Trait Implementations§
impl Freeze for UriParts
impl RefUnwindSafe for UriParts
impl Send for UriParts
impl Sync for UriParts
impl Unpin for UriParts
impl UnsafeUnpin for UriParts
impl UnwindSafe for UriParts
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