ExStreamClient.Model.BodyguardRule (ExStreamClient v0.2.0)

Copy Markdown View Source

Schema representing a BodyguardRule

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.BodyguardRule{
  action:
    (:bounce_remove
     | :bounce_flag
     | :bounce
     | :remove
     | :shadow
     | :flag
     | :keep)
    | nil,
  label: String.t(),
  severity_rules: [ExStreamClient.Model.BodyguardSeverityRule.t()] | 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()