pub struct Forwarded {
pub ip: Option<String>,
pub scheme: Option<String>,
pub host: Option<String>,
pub port: Option<u16>,
}Expand description
What a trusted proxy told us about the original client.
Fields§
§ip: Option<String>The client address, when the chain named one.
scheme: Option<String>http or https, when the proxy said.
host: Option<String>The Host the client asked for, when the proxy said.
port: Option<u16>The port the client connected to, when the proxy said.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Forwarded
impl RefUnwindSafe for Forwarded
impl Send for Forwarded
impl Sync for Forwarded
impl Unpin for Forwarded
impl UnsafeUnpin for Forwarded
impl UnwindSafe for Forwarded
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