[−]Struct matrix_sdk_common::push::UnderridePushRule
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
pub fn clone(&self) -> UnderridePushRule
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for UnderridePushRule
impl<'de> Deserialize<'de> for UnderridePushRule
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<UnderridePushRule, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
__deserializer: __D
) -> Result<UnderridePushRule, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for UnderridePushRule
impl Extend<UnderridePushRule> for Ruleset
pub fn extend<T>(&mut self, iter: T) where
T: IntoIterator<Item = UnderridePushRule>,
T: IntoIterator<Item = UnderridePushRule>,
pub fn extend_one(&mut self, item: A)[src]
pub fn extend_reserve(&mut self, additional: usize)[src]
impl Ord for UnderridePushRule
pub fn cmp(&self, other: &UnderridePushRule) -> 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<UnderridePushRule> for UnderridePushRule
pub fn eq(&self, other: &UnderridePushRule) -> bool
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl PartialOrd<UnderridePushRule> for UnderridePushRule
pub fn partial_cmp(&self, other: &UnderridePushRule) -> 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 UnderridePushRule
impl Serialize for UnderridePushRule
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 UnderridePushRule[src]
impl Send for UnderridePushRule[src]
impl Sync for UnderridePushRule[src]
impl Unpin for UnderridePushRule[src]
impl UnwindSafe for UnderridePushRule[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>,