[][src]Struct push::storage::PushRecord

pub struct PushRecord {
    pub uaid: String,
    pub channel_id: String,
    pub endpoint: String,
    pub scope: String,
    pub key: Vec<u8>,
    pub ctime: Timestamp,
    pub app_server_key: Option<String>,
    pub native_id: Option<String>,
}

Fields

uaid: String

User Agent's unique identifier

channel_id: String

Designation label provided by the subscribing service

endpoint: String

Endpoint provided from the push server

scope: String

The receipient (service worker)'s scope

key: Vec<u8>

Private EC Prime256v1 key info.

ctime: Timestamp

Time this subscription was created.

app_server_key: Option<String>

VAPID public key to restrict subscription updates for only those that sign using the private VAPID key.

native_id: Option<String>

(if this is a bridged connection (e.g. on Android), this is the native OS Push ID)

Implementations

impl PushRecord[src]

pub fn new(
    uaid: &str,
    chid: &str,
    endpoint: &str,
    scope: &str,
    key: Key
) -> Self
[src]

Create a Push Record from the Subscription info: endpoint, encryption keys, etc.

pub(crate) fn from_row(row: &Row<'_>) -> Result<Self>[src]

Trait Implementations

impl Clone for PushRecord[src]

impl Debug for PushRecord[src]

impl PartialEq<PushRecord> for PushRecord[src]

impl StructuralPartialEq for PushRecord[src]

Auto Trait Implementations

impl RefUnwindSafe for PushRecord

impl Send for PushRecord

impl Sync for PushRecord

impl Unpin for PushRecord

impl UnwindSafe for PushRecord

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> 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.