mtx::events::state::policy_rule::Rule struct

Content of the m.policy.rule.* events.

The entity described by the state events can contain * and ? to match zero or more and one or more characters respectively. Note that rules against rooms can describe a room ID or room alias

  • the subscriber is responsible for resolving the alias to a room ID if desired.

Public variables

std::string entity
Required: The entity affected by this rule. Glob characters * and ? can be used to match zero or more and one or more characters respectively.
std::string reason
Required: The human-readable description for the recommendation.
std::string recommendation
Required: The suggested action to take. Currently only m.ban is specified.