[][src]Struct ruma_common::push::ContentPushRule

pub struct ContentPushRule(pub PatternedPushRule);

Wrapper type to disambiguate the kind of the wrapped rule

Implementations

impl ContentPushRule[src]

Default content push rules

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

Matches any message whose content is unencrypted and contains the local part of the user's Matrix ID, separated by word boundaries.

Trait Implementations

impl Clone for ContentPushRule[src]

impl Debug for ContentPushRule[src]

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

impl Eq for ContentPushRule[src]

impl Extend<ContentPushRule> for Ruleset[src]

impl Ord for ContentPushRule[src]

impl PartialEq<ContentPushRule> for ContentPushRule[src]

impl PartialOrd<ContentPushRule> for ContentPushRule[src]

impl RulesetMember for ContentPushRule[src]

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