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 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.
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 FromObjectRef for User
impl FromObjectRef for User
Source§impl IntoObjectRef for User
impl IntoObjectRef for User
Source§impl IntoValue for User
impl IntoValue for User
Source§fn into_value(self) -> Value
fn into_value(self) -> Value
Boxes the meta structure back into a 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,
Efficiently serializes the payload directly.
Source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
Extracts children meta map out of a value.
Source§impl ProcessValue for User
impl ProcessValue for User
Source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
Returns the type of the value.
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,
Executes a processor on this value.
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,
Recurses into children of this value.
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 UnsafeUnpin 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
Mutably borrows from an owned value. Read more