[][src]Struct ruma_common::push::OverridePushRule

pub struct OverridePushRule(pub ConditionalPushRule);

Wrapper type to disambiguate the kind of the wrapped rule

Implementations

impl OverridePushRule[src]

Default override push rules

pub fn master() -> Self[src]

Matches all events, this can be enabled to turn off all push notifications other than those generated by override rules set by the user.

pub fn suppress_notices() -> Self[src]

Matches messages with a msgtype of notice.

pub fn invite_for_me(user_id: &UserId) -> Self[src]

Matches any invites to a new room for this user.

pub fn member_event() -> Self[src]

Matches any m.room.member_event.

pub fn contains_display_name() -> Self[src]

Matches any message whose content is unencrypted and contains the user's current display name in the room in which it was sent.

pub fn tombstone() -> Self[src]

Matches any state event whose type is m.room.tombstone. This is intended to notify users of a room when it is upgraded, similar to what an @room notification would accomplish.

pub fn roomnotif() -> Self[src]

Matches any message whose content is unencrypted and contains the text @room, signifying the whole room should be notified of the event.

Trait Implementations

impl Clone for OverridePushRule[src]

impl Debug for OverridePushRule[src]

impl<'de> Deserialize<'de> for OverridePushRule[src]

impl Eq for OverridePushRule[src]

impl Extend<OverridePushRule> for Ruleset[src]

impl Ord for OverridePushRule[src]

impl PartialEq<OverridePushRule> for OverridePushRule[src]

impl PartialOrd<OverridePushRule> for OverridePushRule[src]

impl RulesetMember for OverridePushRule[src]

impl Serialize for OverridePushRule[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.