pub trait SegmentClientExt {
    // Required method
    fn environment_track<S>(
        &self,
        environment_id: &EnvironmentId,
        app_name: &str,
        user_id: Uuid,
        event: S,
        properties: Value
    )
       where S: Into<String>;
}
Expand description

Extension trait for mz_segment::Client.

Required Methods§

source

fn environment_track<S>( &self, environment_id: &EnvironmentId, app_name: &str, user_id: Uuid, event: S, properties: Value )
where S: Into<String>,

Tracks an event associated with an environment.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SegmentClientExt for Client

source§

fn environment_track<S>( &self, environment_id: &EnvironmentId, app_name: &str, user_id: Uuid, event: S, properties: Value )
where S: Into<String>,

Tracks an event associated with an environment.

Various metadata about the environment is automatically attached using canonical field names.

Panics

Panics if properties is not a serde_json::Value::Object.

Implementors§