Enum ruma::push::PushFormat
source · [−]#[non_exhaustive]
pub enum PushFormat {
EventIdOnly,
// some variants omitted
}
Expand description
A special format that the homeserver should use when sending notifications to a Push Gateway. Currently, only “event_id_only” is supported as of Push Gateway API r0.1.1.
This type can hold an arbitrary string. To build this with a custom value, convert it from a
string with ::from()
/ .into()
. To check for values that are not available as a
documented variant here, use its string representation, obtained through
.as_str()
.
Variants (Non-exhaustive)
This enum is marked as 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.
EventIdOnly
Require the homeserver to only send a reduced set of fields in the push.
Implementations
sourceimpl PushFormat
impl PushFormat
Trait Implementations
sourceimpl AsRef<str> for PushFormat
impl AsRef<str> for PushFormat
sourceimpl Clone for PushFormat
impl Clone for PushFormat
sourcefn clone(&self) -> PushFormat
fn clone(&self) -> PushFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PushFormat
impl Debug for PushFormat
sourceimpl<'de> Deserialize<'de> for PushFormat
impl<'de> Deserialize<'de> for PushFormat
sourcefn deserialize<D>(
deserializer: D
) -> Result<PushFormat, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<PushFormat, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for PushFormat
impl Display for PushFormat
sourceimpl<T> From<T> for PushFormatwhere
T: AsRef<str> + Into<Box<str, Global>>,
impl<T> From<T> for PushFormatwhere
T: AsRef<str> + Into<Box<str, Global>>,
sourcefn from(s: T) -> PushFormat
fn from(s: T) -> PushFormat
Converts to this type from the input type.
sourceimpl PartialEq<PushFormat> for PushFormat
impl PartialEq<PushFormat> for PushFormat
sourcefn eq(&self, other: &PushFormat) -> bool
fn eq(&self, other: &PushFormat) -> bool
sourceimpl Serialize for PushFormat
impl Serialize for PushFormat
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for PushFormat
impl StructuralEq for PushFormat
impl StructuralPartialEq for PushFormat
Auto Trait Implementations
impl RefUnwindSafe for PushFormat
impl Send for PushFormat
impl Sync for PushFormat
impl Unpin for PushFormat
impl UnwindSafe for PushFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.