Enum ruma_common::push::AnyPushRule [−][src]
pub enum AnyPushRule {
Override(ConditionalPushRule),
Content(PatternedPushRule),
Room(SimplePushRule),
Sender(SimplePushRule),
Underride(ConditionalPushRule),
}Expand description
The kinds of push rules that are available.
Variants
Override(ConditionalPushRule)Rules that override all other kinds.
Content(PatternedPushRule)Content-specific rules.
Room(SimplePushRule)Room-specific rules.
Sender(SimplePushRule)Sender-specific rules.
Underride(ConditionalPushRule)Lowest priority rules.
Implementations
Convert AnyPushRule to AnyPushRuleRef.
Check if the push rule applies to the event.
Arguments
event- The flattened JSON representation of a room message event.context- The context of the room at the time of the event.
Trait Implementations
Extends a collection with the contents of an iterator. Read more
🔬 This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
🔬 This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Auto Trait Implementations
impl RefUnwindSafe for AnyPushRuleimpl Send for AnyPushRuleimpl Sync for AnyPushRuleimpl Unpin for AnyPushRuleimpl UnwindSafe for AnyPushRuleBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more