Module segment::message

source ·
Expand description

Representations of the messages which may be sent to Segment’s tracking API.

All Segment messages support a few common fields:

  • Details related to user identification are captured by this library through the User enum.

  • Some user traits and event properties are specified through the Segment spec – these are standardized members which, if followed, will be converted to the native equivalent of each tool.

  • All Segment messages support a context field containing additional contextual details. This field is exposed in this library as context. The data in context is standardized, and is documented in Segment’s context docs.

  • All Segment messages support an integrations field that enables simple routing at the event collection layer. See Segment’s integrations docs for how to use this field.

Structs§

Enums§

  • An enum containing all messages which may be placed inside a batch.
  • An enum containing all values which may be sent to Segment’s tracking API.
  • User ID information.