ExStreamClient.Model.ModerationRulesTriggeredEvent (ExStreamClient v0.2.0)

Copy Markdown View Source

Schema representing a ModerationRulesTriggeredEvent

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.ModerationRulesTriggeredEvent{
  created_at: DateTime.t() | integer() | String.t(),
  custom: %{optional(String.t()) => any()},
  entity_id: String.t(),
  entity_type: String.t(),
  received_at: (DateTime.t() | integer() | String.t()) | nil,
  review_queue_item_id: String.t() | nil,
  rule: ExStreamClient.Model.ModerationRuleInfo.t(),
  triggered_actions: [String.t()],
  type: String.t(),
  user_id: String.t(),
  violation_number: integer() | nil
}

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()