pub struct WebPushSubscription {
pub id: u64,
pub endpoint: String,
pub server_key: String,
pub alerts: WebPushAlerts,
}Expand description
Represents a subscription to the Web Push API.
Fields§
§id: u64The ID of the Web Push subscription in the database.
endpoint: StringThe endpoint of the Web Push subscription.
server_key: StringThe server key used for the Web Push subscription.
alerts: WebPushAlertsWhich alerts should be delivered to the push endpoint.
Trait Implementations§
Source§impl Clone for WebPushSubscription
impl Clone for WebPushSubscription
Source§fn clone(&self) -> WebPushSubscription
fn clone(&self) -> WebPushSubscription
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebPushSubscription
impl Debug for WebPushSubscription
Source§impl<'de> Deserialize<'de> for WebPushSubscription
impl<'de> Deserialize<'de> for WebPushSubscription
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WebPushSubscription
impl RefUnwindSafe for WebPushSubscription
impl Send for WebPushSubscription
impl Sync for WebPushSubscription
impl Unpin for WebPushSubscription
impl UnwindSafe for WebPushSubscription
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more