[][src]Enum analytics::message::User

pub enum User {
    UserId {
        user_id: String,
    },
    AnonymousId {
        anonymous_id: String,
    },
    Both {
        user_id: String,
        anonymous_id: String,
    },
}

User ID information.

All Segment tracking API calls require a user ID, an anonymous ID, or both. See Segment's documentation for how user IDs and anonymous IDs should be used.

Variants

UserId

The user is identified only by a user ID.

Fields of UserId

user_id: String
AnonymousId

The user is identified only by an anonymous ID.

Fields of AnonymousId

anonymous_id: String
Both

The user is identified by both a user ID and an anonymous ID.

Fields of Both

user_id: Stringanonymous_id: String

Trait Implementations

impl PartialEq<User> for User[src]

impl Default for User[src]

impl Clone for User[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for User[src]

impl Serialize for User[src]

impl<'de> Deserialize<'de> for User[src]

Auto Trait Implementations

impl Sync for User

impl Send for User

impl Unpin for User

impl RefUnwindSafe for User

impl UnwindSafe for User

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err