pub struct RemoteIPConfig {
pub proxy: Option<String>,
}
Expand description
Remote IP retrieval configuration
This configuration must be built and set as Actix web data
Fields§
§proxy: Option<String>
The IP address of the proxy. This address can ends with a star ‘*’
Implementations§
Source§impl RemoteIPConfig
impl RemoteIPConfig
Sourcepub fn with_proxy_ip<D: Display>(proxy: D) -> Self
pub fn with_proxy_ip<D: Display>(proxy: D) -> Self
Initiate a new RemoteIPConfig configuration instance, that can be set as [actix_web::Data] structure
Trait Implementations§
Source§impl Clone for RemoteIPConfig
impl Clone for RemoteIPConfig
Source§fn clone(&self) -> RemoteIPConfig
fn clone(&self) -> RemoteIPConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RemoteIPConfig
impl Debug for RemoteIPConfig
Source§impl Default for RemoteIPConfig
impl Default for RemoteIPConfig
Source§fn default() -> RemoteIPConfig
fn default() -> RemoteIPConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for RemoteIPConfig
impl PartialEq for RemoteIPConfig
impl Eq for RemoteIPConfig
impl StructuralPartialEq for RemoteIPConfig
Auto Trait Implementations§
impl Freeze for RemoteIPConfig
impl RefUnwindSafe for RemoteIPConfig
impl Send for RemoteIPConfig
impl Sync for RemoteIPConfig
impl Unpin for RemoteIPConfig
impl UnwindSafe for RemoteIPConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.