[]Struct matrix_sdk_common::push::OverridePushRule

pub struct OverridePushRule(pub ConditionalPushRule);

Wrapper type to disambiguate the kind of the wrapped rule

Implementations

impl OverridePushRule

Default override push rules

pub fn master() -> OverridePushRule

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() -> OverridePushRule

Matches messages with a msgtype of notice.

pub fn invite_for_me(user_id: &UserId) -> OverridePushRule

Matches any invites to a new room for this user.

pub fn member_event() -> OverridePushRule

Matches any m.room.member_event.

pub fn contains_display_name() -> OverridePushRule

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() -> OverridePushRule

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() -> OverridePushRule

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

impl Debug for OverridePushRule

impl<'de> Deserialize<'de> for OverridePushRule

impl Eq for OverridePushRule

impl Extend<OverridePushRule> for Ruleset

impl Ord for OverridePushRule

impl PartialEq<OverridePushRule> for OverridePushRule

impl PartialOrd<OverridePushRule> for OverridePushRule

impl RulesetMember for OverridePushRule

impl Serialize for OverridePushRule

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsyncTraitDeps for T where
    T: Send + Sync + Debug
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,