pub enum AutoInferSetting {
Auto,
Never,
Legacy,
}Expand description
Used to control the IP inference setting in relay. This is used as an alternative to magic values like {{auto}} in the user.ip_address field.
Variants§
Auto
Derive the IP address from the connection information.
Never
Do not derive the IP address, keep what was being sent by the client.
Legacy
Enables the legacy IP inference behaviour.
The legacy behavior works mainly by inspecting the content of user.ip_address and
decides based on the value.
Unfortunately, not all platforms are treated equals so there are exceptions for
javascript, cocoa and objc.
If the value in ip_address is {{auto}}, it will work the
same as AutoInferSetting::Auto. This is true for all platforms.
If the value in ip_address is None, it will only infer the IP address if a
REMOTE_ADDR header is sent in the request payload of the event.
NOTE: Setting ip_address to None will behave the same as setting it to {{auto}}
for javascript, cocoa and objc.
Implementations§
Source§impl AutoInferSetting
impl AutoInferSetting
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Returns a string representation for AutoInferSetting.
Trait Implementations§
Source§impl Clone for AutoInferSetting
impl Clone for AutoInferSetting
Source§fn clone(&self) -> AutoInferSetting
fn clone(&self) -> AutoInferSetting
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AutoInferSetting
impl Debug for AutoInferSetting
Source§impl Default for AutoInferSetting
impl Default for AutoInferSetting
Source§fn default() -> AutoInferSetting
fn default() -> AutoInferSetting
Source§impl Empty for AutoInferSetting
impl Empty for AutoInferSetting
Source§impl FromStr for AutoInferSetting
impl FromStr for AutoInferSetting
Source§impl FromValue for AutoInferSetting
impl FromValue for AutoInferSetting
Source§impl IntoValue for AutoInferSetting
impl IntoValue for AutoInferSetting
Source§fn into_value(self) -> Value
fn into_value(self) -> Value
Source§fn serialize_payload<S>(
&self,
s: S,
_: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
s: S,
_: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Source§impl PartialEq for AutoInferSetting
impl PartialEq for AutoInferSetting
Source§fn eq(&self, other: &AutoInferSetting) -> bool
fn eq(&self, other: &AutoInferSetting) -> bool
self and other values to be equal, and is used by ==.