Struct fxa_client::DevicePushSubscription
source · pub struct DevicePushSubscription {
pub endpoint: String,
pub public_key: String,
pub auth_key: String,
}
Expand description
Details of a web-push subscription endpoint.
This struct encapsulates the details of a web-push subscription endpoint, including all the information necessary to send a notification to its owner. Devices attached to the user’s account may register one of these in order to receive timely updates about account-related events.
Managing a web-push subscription is outside of the scope of this component.
Fields§
§endpoint: String
§public_key: String
§auth_key: String
Trait Implementations§
source§impl Debug for DevicePushSubscription
impl Debug for DevicePushSubscription
source§impl From<DevicePushSubscription> for PushSubscription
impl From<DevicePushSubscription> for PushSubscription
source§fn from(sub: DevicePushSubscription) -> Self
fn from(sub: DevicePushSubscription) -> Self
Converts to this type from the input type.
source§impl From<PushSubscription> for DevicePushSubscription
impl From<PushSubscription> for DevicePushSubscription
source§fn from(sub: PushSubscription) -> Self
fn from(sub: PushSubscription) -> Self
Converts to this type from the input type.