[−][src]Struct push::storage::record::PushRecord
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]
uaid: &str,
chid: &str,
endpoint: &str,
scope: &str,
key: Key
) -> Self
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]
fn clone(&self) -> PushRecord
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PushRecord
[src]
impl PartialEq<PushRecord> for PushRecord
[src]
fn eq(&self, other: &PushRecord) -> bool
[src]
fn ne(&self, other: &PushRecord) -> bool
[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]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
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.
fn to_owned(&self) -> T
[src]
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.
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>,