[][src]Struct ruma_client_api::r0::push::Pusher

pub struct Pusher {
    pub pushkey: String,
    pub kind: Option<PusherKind>,
    pub app_id: String,
    pub app_display_name: String,
    pub device_display_name: String,
    pub profile_tag: Option<String>,
    pub lang: String,
    pub data: PusherData,
}

Defines a pusher

Fields

pushkey: String

This is a unique identifier for this pusher. Max length, 512 bytes.

kind: Option<PusherKind>

The kind of the pusher. If set to None in a call to set_pusher, this will delete the pusher

app_id: String

This is a reverse-DNS style identifier for the application. Max length, 64 chars.

app_display_name: String

A string that will allow the user to identify what application owns this pusher.

device_display_name: String

A string that will allow the user to identify what device owns this pusher.

profile_tag: Option<String>

This string determines which set of device specific rules this pusher executes.

lang: String

The preferred language for receiving notifications (e.g. 'en' or 'en-US')

data: PusherData

Information for the pusher implementation itself.

Trait Implementations

impl Clone for Pusher[src]

impl Debug for Pusher[src]

impl<'de> Deserialize<'de> for Pusher[src]

impl Serialize for Pusher[src]

Auto Trait Implementations

impl RefUnwindSafe for Pusher

impl Send for Pusher

impl Sync for Pusher

impl Unpin for Pusher

impl UnwindSafe for Pusher

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,