pub struct Endpoint {
pub scheme: Scheme,
pub host: String,
pub port: u16,
pub path: String,
}Expand description
Where a request goes: scheme, host, port and the path with its query.
Fields§
§scheme: Schemehttp or https.
host: StringThe host as written, without brackets for an IPv6 literal.
port: u16The port, the scheme’s default when none is written.
path: StringPath and query, / when none is written.
Implementations§
Trait Implementations§
impl Eq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Forget for Endpoint
impl Freeze for Endpoint
impl Move for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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