pub enum Component {
UserInfo,
Path,
Query,
QueryPart,
Fragment,
Opaque,
}Expand description
The URL component a value belongs to; it selects the characters that are left unencoded.
Variants§
UserInfo
User name or password. : and @ are encoded.
Path
Path. / is kept; requoting never decodes %2F.
Query
Whole query string. &, =, + and ; are kept; space is encoded as +.
QueryPart
Query key or value. &, =, + and ; are encoded; space is encoded as +.
Fragment
Fragment.
Opaque
A standalone value outside of a URL, such as a cookie name or value.
Only unreserved characters (A-Z a-z 0-9 - . _ ~) are kept.
Trait Implementations§
impl Copy for Component
impl Eq for Component
impl StructuralPartialEq for Component
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
impl UnwindSafe for Component
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