pub struct Route {
pub url: String,
pub host: Option<String>,
}Available on crate feature
client only.Expand description
Where to send a request, and the Host it must still carry.
Fields§
§url: StringThe URL to send the request to.
host: Option<String>The Host header it must carry, when it goes somewhere other than its URL’s authority.
Trait Implementations§
impl Eq for Route
impl StructuralPartialEq for Route
Auto Trait Implementations§
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
impl UnwindSafe for Route
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