[−]Enum matrix_sdk_common::push::Action
This represents the different actions that should be taken when a rule is matched, and controls how notifications are delivered to the client.
See https://matrix.org/docs/spec/client_server/r0.6.0#actions for details.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Causes matching events to generate a notification.
Prevents matching events from generating a notification.
Behaves like notify but homeservers may choose to coalesce multiple events into a single notification.
SetTweak(Tweak)Sets an entry in the 'tweaks' dictionary sent to the push gateway.
Trait Implementations
impl Clone for Action
pub fn clone(&self) -> Action
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for Action
impl<'de> Deserialize<'de> for Action
pub fn deserialize<D>(
deserializer: D
) -> Result<Action, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
deserializer: D
) -> Result<Action, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Serialize for Action
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 Action[src]
impl Send for Action[src]
impl Sync for Action[src]
impl Unpin for Action[src]
impl UnwindSafe for Action[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>,