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