pub trait SegmentClientExt {
// Required method
fn environment_track<S>(
&self,
environment_id: &EnvironmentId,
event: S,
properties: Value,
details: EventDetails<'_>,
)
where S: Into<String>;
}
Expand description
Extension trait for mz_segment::Client
.
Required Methods§
Sourcefn environment_track<S>(
&self,
environment_id: &EnvironmentId,
event: S,
properties: Value,
details: EventDetails<'_>,
)
fn environment_track<S>( &self, environment_id: &EnvironmentId, event: S, properties: Value, details: EventDetails<'_>, )
Tracks an event associated with an environment.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl SegmentClientExt for Client
impl SegmentClientExt for Client
Source§fn environment_track<S>(
&self,
environment_id: &EnvironmentId,
event: S,
properties: Value,
_: EventDetails<'_>,
)
fn environment_track<S>( &self, environment_id: &EnvironmentId, event: S, properties: Value, _: EventDetails<'_>, )
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
.