Trait re_analytics::Properties

source ·
pub trait Properties: Sized {
    // Provided method
    fn serialize(self, event: &mut AnalyticsEvent) { ... }
}
Expand description

Trait representing the properties of an analytics event.

This is separate from Event to facilitate code re-use.

For example, [re_build_info::BuildInfo] has an implementation of this trait, so that any event which wants to include build info in its properties may include that struct in its own definition, and then call build_info.serialize in its own serialize implementation.

Provided Methods§

source

fn serialize(self, event: &mut AnalyticsEvent)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Properties for BuildInfo

source§

fn serialize(self, event: &mut AnalyticsEvent)

Implementors§