ExStreamClient.Model.Segment (ExStreamClient v0.1.7)

View Source

Schema representing a Segment

Summary

Functions

Components could just be enums that are typed - so we need to decode those as enums as they will just be stings

Types

t()

@type t() :: %ExStreamClient.Model.Segment{
  all_sender_channels: boolean(),
  all_users: boolean(),
  created_at: float(),
  deleted_at: float() | nil,
  description: String.t() | nil,
  filter: %{optional(String.t()) => any()} | nil,
  id: String.t(),
  name: String.t(),
  size: integer(),
  task_id: String.t() | nil,
  type: String.t(),
  updated_at: float()
}

Functions

decode(map)

Components could just be enums that are typed - so we need to decode those as enums as they will just be stings

nested_components()