pub struct Request<'req> {
pub protocol: &'req str,
pub host: &'req str,
pub path: &'req str,
pub query: &'req str,
}
Fields§
§protocol: &'req str
§host: &'req str
§path: &'req str
§query: &'req str
Implementations§
Source§impl Request<'_>
impl Request<'_>
pub fn create_url(&self) -> Url
pub async fn create_request(url: &str)
Trait Implementations§
Auto Trait Implementations§
impl<'req> Freeze for Request<'req>
impl<'req> RefUnwindSafe for Request<'req>
impl<'req> Send for Request<'req>
impl<'req> Sync for Request<'req>
impl<'req> Unpin for Request<'req>
impl<'req> UnwindSafe for Request<'req>
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