pub struct Uri {
pub uri: String,
pub url: String,
pub query: String,
pub fragment: String,
pub path: String,
pub path_segments: Vec<String>,
}Expand description
统一资源标识符
Fields§
§uri: String资源标识
url: String完整 url
query: String查询字符串
fragment: String片段或位置
path: String资源路径
path_segments: Vec<String>资源段落
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Uri
impl RefUnwindSafe for Uri
impl Send for Uri
impl Sync for Uri
impl Unpin for Uri
impl UnwindSafe for Uri
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