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