pub struct IpAddressConfig {
pub headers: Vec<String>,
pub disable_ip_tracking: bool,
}Expand description
IP-address extraction configuration.
Fields§
§headers: Vec<String>Ordered list of headers to check for the client IP.
Defaults to ["x-forwarded-for", "x-real-ip"].
disable_ip_tracking: boolIf true, IP tracking is entirely disabled (no IP stored in sessions).
Trait Implementations§
Source§impl Clone for IpAddressConfig
impl Clone for IpAddressConfig
Source§fn clone(&self) -> IpAddressConfig
fn clone(&self) -> IpAddressConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IpAddressConfig
impl Debug for IpAddressConfig
Auto Trait Implementations§
impl Freeze for IpAddressConfig
impl RefUnwindSafe for IpAddressConfig
impl Send for IpAddressConfig
impl Sync for IpAddressConfig
impl Unpin for IpAddressConfig
impl UnsafeUnpin for IpAddressConfig
impl UnwindSafe for IpAddressConfig
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