Expand description
Common types for the push notifications module.
§Understanding the types of this module
Push rules are grouped in RuleSet
s, and are grouped in five kinds (for
more details about the different kind of rules, see the Ruleset
documentation,
or the specification). These five kinds are, by order of priority:
- override rules
- content rules
- room rules
- sender rules
- underride rules
Re-exports§
pub use self::condition::_CustomPushCondition;
Structs§
- Conditional
Push Rule - Like
SimplePushRule
, but with an additionalconditions
field. - Conditional
Push Rule Init - Initial set of fields of
ConditionalPushRule
. - Flattened
Json - The flattened representation of a JSON object.
- Http
Pusher Data - Information for a pusher using the Push Gateway API.
- NewConditional
Push Rule - A conditional push rule to update or create.
- NewPatterned
Push Rule - A patterned push rule to update or create.
- NewSimple
Push Rule - A simple push rule to update or create.
- Patterned
Push Rule - Like
SimplePushRule
, but with an additionalpattern
field. - Patterned
Push Rule Init - Initial set of fields of
PatternedPushRule
. - Push
Condition Power Levels Ctx - The room power levels context to be able to test the corresponding push conditions.
- Push
Condition Room Ctx - The context of the room associated to an event to be able to test all push conditions.
- Room
Member Count Is - A decimal integer optionally prefixed by one of
==
,<
,>
,>=
or<=
. - Rule
NotFound Error - The error type returned when trying modify a push rule that could not be found in a
Ruleset
. - Ruleset
- A push ruleset scopes a set of rules according to some criteria.
- Ruleset
Into Iter - Iterator type for
Ruleset
- Ruleset
Iter - Iterator type for
Ruleset
- Simple
Push Rule - A push rule is a single rule that states under what conditions an event should be passed onto a push gateway and how the notification should be presented.
- Simple
Push Rule Init - Initial set of fields of
SimplePushRule
.
Enums§
- Action
- This represents the different actions that should be taken when a rule is matched, and controls how notifications are delivered to the client.
- AnyPush
Rule - The kinds of push rules that are available.
- AnyPush
Rule Ref - Reference to any kind of push rule.
- Comparison
Operator - One of
==
,<
,>
,>=
or<=
. - Flattened
Json Value - Possible JSON values after an object is flattened.
- Insert
Push Rule Error - The error type returned when trying to insert a user-defined push rule into a
Ruleset
. - NewPush
Rule - A push rule to update or create.
- Predefined
Content Rule Id - The rule IDs of the predefined content server push rules.
- Predefined
Override Rule Id - The rule IDs of the predefined override server push rules.
- Predefined
Rule Id - The rule IDs of the predefined server push rules.
- Predefined
Underride Rule Id - The rule IDs of the predefined underride server push rules.
- Push
Condition - A condition that must apply for an associated push rule’s action to be taken.
- Push
Format - A special format that the homeserver should use when sending notifications to a Push Gateway.
Currently, only
event_id_only
is supported, see the Push Gateway API. - Remove
Push Rule Error - The error type returned when trying to remove a user-defined push rule from a
Ruleset
. - Room
Version Feature unstable-msc3932
- Features supported by room versions.
- Rule
Kind - The kinds of push rules that are available.
- Scalar
Json Value - Scalar (non-compound) JSON values.
- Tweak
- The
set_tweak
action.
Functions§
- insert_
and_ move_ rule - Insert the rule in the given indexset and move it to the given position.