Struct sentry_core::protocol::SessionAttributes
source · [−]pub struct SessionAttributes<'a> {
pub release: Cow<'a, str>,
pub environment: Option<Cow<'a, str>>,
pub ip_address: Option<IpAddr>,
pub user_agent: Option<String>,
}
Expand description
Additional attributes for Sessions.
Fields
release: Cow<'a, str>
The release version string.
environment: Option<Cow<'a, str>>
The environment identifier.
ip_address: Option<IpAddr>
The ip address of the user. This data is not persisted but used for filtering.
user_agent: Option<String>
The user agent of the user. This data is not persisted but used for filtering.
Trait Implementations
sourceimpl<'a> Clone for SessionAttributes<'a>
impl<'a> Clone for SessionAttributes<'a>
sourcefn clone(&self) -> SessionAttributes<'a>
fn clone(&self) -> SessionAttributes<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for SessionAttributes<'a>
impl<'a> Debug for SessionAttributes<'a>
sourceimpl<'de, 'a> Deserialize<'de> for SessionAttributes<'a>
impl<'de, 'a> Deserialize<'de> for SessionAttributes<'a>
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<SessionAttributes<'a>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SessionAttributes<'a>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'a> PartialEq<SessionAttributes<'a>> for SessionAttributes<'a>
impl<'a> PartialEq<SessionAttributes<'a>> for SessionAttributes<'a>
sourcefn eq(&self, other: &SessionAttributes<'a>) -> bool
fn eq(&self, other: &SessionAttributes<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SessionAttributes<'a>) -> bool
fn ne(&self, other: &SessionAttributes<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> Serialize for SessionAttributes<'a>
impl<'a> Serialize for SessionAttributes<'a>
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> StructuralPartialEq for SessionAttributes<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SessionAttributes<'a>
impl<'a> Send for SessionAttributes<'a>
impl<'a> Sync for SessionAttributes<'a>
impl<'a> Unpin for SessionAttributes<'a>
impl<'a> UnwindSafe for SessionAttributes<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more