pub struct Uri {
pub url: String,
pub query: String,
pub query_params: BTreeMap<String, String>,
pub fragment: String,
pub path: String,
pub path_segments: Vec<String>,
pub scheme: String,
pub host: String,
pub port: String,
}Expand description
统一资源标识符
Fields§
§url: String完整 url
query: String查询字符串
query_params: BTreeMap<String, String>查询参数
fragment: String片段或位置
path: String资源路径
path_segments: 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