[]Struct matrix_sdk_common::push::UnderridePushRule

pub struct UnderridePushRule(pub ConditionalPushRule);

Wrapper type to disambiguate the kind of the wrapped rule

Implementations

impl UnderridePushRule

Default underrides push rules

pub fn call() -> UnderridePushRule

Matches any incoming VOIP call.

pub fn encrypted_room_one_to_one() -> UnderridePushRule

Matches any encrypted event sent in a room with exactly two members. Unlike other push rules, this rule cannot be matched against the content of the event by nature of it being encrypted. This causes the rule to be an "all or nothing" match where it either matches all events that are encrypted (in 1:1 rooms) or none.

pub fn room_one_to_one() -> UnderridePushRule

Matches any message sent in a room with exactly two members.

pub fn message() -> UnderridePushRule

Matches all chat messages.

pub fn encrypted() -> UnderridePushRule

Matches all encrypted events. Unlike other push rules, this rule cannot be matched against the content of the event by nature of it being encrypted. This causes the rule to be an "all or nothing" match where it either matches all events that are encrypted (in group rooms) or none.

Trait Implementations

impl Clone for UnderridePushRule

impl Debug for UnderridePushRule

impl<'de> Deserialize<'de> for UnderridePushRule

impl Eq for UnderridePushRule

impl Extend<UnderridePushRule> for Ruleset

impl Ord for UnderridePushRule

impl PartialEq<UnderridePushRule> for UnderridePushRule

impl PartialOrd<UnderridePushRule> for UnderridePushRule

impl RulesetMember for UnderridePushRule

impl Serialize for UnderridePushRule

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>,