[−]Struct matrix_sdk_common::push::OverridePushRule
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
pub fn clone(&self) -> OverridePushRule
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for OverridePushRule
impl<'de> Deserialize<'de> for OverridePushRule
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<OverridePushRule, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
__deserializer: __D
) -> Result<OverridePushRule, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for OverridePushRule
impl Extend<OverridePushRule> for Ruleset
pub fn extend<T>(&mut self, iter: T) where
T: IntoIterator<Item = OverridePushRule>,
T: IntoIterator<Item = OverridePushRule>,
pub fn extend_one(&mut self, item: A)[src]
pub fn extend_reserve(&mut self, additional: usize)[src]
impl Ord for OverridePushRule
pub fn cmp(&self, other: &OverridePushRule) -> Ordering
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<OverridePushRule> for OverridePushRule
pub fn eq(&self, other: &OverridePushRule) -> bool
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl PartialOrd<OverridePushRule> for OverridePushRule
pub fn partial_cmp(&self, other: &OverridePushRule) -> Option<Ordering>
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl RulesetMember for OverridePushRule
impl Serialize for OverridePushRule
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl RefUnwindSafe for OverridePushRule[src]
impl Send for OverridePushRule[src]
impl Sync for OverridePushRule[src]
impl Unpin for OverridePushRule[src]
impl UnwindSafe for OverridePushRule[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> AsyncTraitDeps for T where
T: Send + Sync + Debug, [src]
T: Send + Sync + Debug,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,