pub struct Uri {
pub url: String,
pub query: HashMap<String, String>,
pub fragment: String,
pub path: String,
pub pathlist: Vec<String>,
pub scheme: String,
pub host: String,
pub port: String,
}Expand description
统一资源标识符
Fields§
§url: String完整 url
query: HashMap<String, String>查询字符串
fragment: String片段或位置
path: String路径 服务器上的文件路径
pathlist: Vec<String>路径列表
scheme: String访问协议
host: String主机名或 IP 地址
port: 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
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)