[][src]Struct ruma_common::push::UnderridePushRule

pub struct UnderridePushRule(pub ConditionalPushRule);

Wrapper type to disambiguate the kind of the wrapped rule

Implementations

impl UnderridePushRule[src]

Default underrides push rules

pub fn call() -> Self[src]

Matches any incoming VOIP call.

pub fn encrypted_room_one_to_one() -> Self[src]

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() -> Self[src]

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

pub fn message() -> Self[src]

Matches all chat messages.

pub fn encrypted() -> Self[src]

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[src]

impl Debug for UnderridePushRule[src]

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

impl Eq for UnderridePushRule[src]

impl Extend<UnderridePushRule> for Ruleset[src]

impl Ord for UnderridePushRule[src]

impl PartialEq<UnderridePushRule> for UnderridePushRule[src]

impl PartialOrd<UnderridePushRule> for UnderridePushRule[src]

impl RulesetMember for UnderridePushRule[src]

impl Serialize for UnderridePushRule[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.