Skip to content

Commit

Permalink
Move field
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim committed Aug 27, 2024
1 parent 9553289 commit 717afb9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions relay-event-schema/src/protocol/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ pub struct User {
#[metastructure(pii = "true", max_chars = 128, skip_serialization = "empty")]
pub name: Annotated<String>,

/// Approximate geographical location of the end user or device.
#[metastructure(skip_serialization = "empty")]
pub geo: Annotated<Geo>,

/// The user segment, for apps that divide users in user segments.
#[metastructure(skip_serialization = "empty")]
pub segment: Annotated<String>,

/// The user string representation as handled in Sentry.
///
/// This field is computed by concatenating the name of specific fields of the `User`
Expand All @@ -84,6 +76,14 @@ pub struct User {
#[metastructure(pii = "true", skip_serialization = "empty")]
pub sentry_user: Annotated<String>,

/// Approximate geographical location of the end user or device.
#[metastructure(skip_serialization = "empty")]
pub geo: Annotated<Geo>,

/// The user segment, for apps that divide users in user segments.
#[metastructure(skip_serialization = "empty")]
pub segment: Annotated<String>,

/// 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.
#[metastructure(pii = "true", skip_serialization = "empty")]
Expand Down

0 comments on commit 717afb9

Please sign in to comment.