/// Representation of the X-Forwarded-For header, for quick ip address lookup when using an nginx reverse proxy
////// Note: this struct implements the [Display](std::fmt::Display) trait. When no header was found, the `null` string gets printed.
#[derive(Clone, Debug)]pubstructXForwardedFor{pub(crate)data:Option<String>}implstd::fmt::Display forXForwardedFor{fnfmt(&self, formatter:&mutstd::fmt::Formatter)->Result<(), std::fmt::Error>{match&self.data {Some(content)=>write!(formatter,"{}", content),None=>write!(formatter,"null")}}}implXForwardedFor{/// Retrieves the inner first match of the X-Forwarded-For header
pubfninto_inner(self)->Option<String>{self.data
}}