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