Struct relay_event_schema::protocol::User
source · pub struct User {
pub id: Annotated<LenientString>,
pub email: Annotated<String>,
pub ip_address: Annotated<IpAddr>,
pub username: Annotated<LenientString>,
pub name: Annotated<String>,
pub sentry_user: Annotated<String>,
pub geo: Annotated<Geo>,
pub segment: Annotated<String>,
pub data: Annotated<Object<Value>>,
pub other: Object<Value>,
}
Expand description
Information about the user who triggered an event.
{
"user": {
"id": "unique_id",
"username": "my_user",
"email": "foo@example.com",
"ip_address": "127.0.0.1",
"subscription": "basic"
}
}
Fields§
§id: Annotated<LenientString>
Unique identifier of the user.
email: Annotated<String>
Email address of the user.
ip_address: Annotated<IpAddr>
Remote IP address of the user. Defaults to “{{auto}}”.
username: Annotated<LenientString>
Username of the user.
name: Annotated<String>
Human readable name of the user.
sentry_user: Annotated<String>
The user string representation as handled in Sentry.
This field is computed by concatenating the name of specific fields of the User
struct with their value. For example, if id
is set, sentry_user
will be equal to
`“id:id-of-the-user”.
geo: Annotated<Geo>
Approximate geographical location of the end user or device.
segment: Annotated<String>
The user segment, for apps that divide users in user segments.
data: Annotated<Object<Value>>
Additional arbitrary fields, as stored in the database (and sometimes as sent by clients).
All data from self.other
should end up here after store normalization.
other: Object<Value>
Additional arbitrary fields, as sent by clients.
Trait Implementations§
source§impl FromValue for User
impl FromValue for User
source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
source§impl IntoValue for User
impl IntoValue for User
source§fn into_value(self) -> Value
fn into_value(self) -> Value
source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
source§impl ProcessValue for User
impl ProcessValue for User
source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
impl StructuralPartialEq for User
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)