pub struct JmapPushSubscription {
pub id: String,
pub device_client_id: Option<String>,
pub verification_code: Option<String>,
pub expires: Option<String>,
pub types: Option<Vec<String>>,
}Expand description
A JMAP PushSubscription object (RFC 8620 §7.2), as returned by the server.
The url and keys properties are write-only (RFC 8620 §7.2.1: the
server MUST NOT return them), so they live on
set::JmapPushSubscriptionCreate only.
Fields§
§id: StringThe server-assigned ID. Defaults to empty in PushSubscription/set
updated echoes, which carry only the server-changed properties.
device_client_id: Option<String>An ID unique to the client + device that created the subscription, letting clients recognize their own subscriptions after losing local state (RFC 8620 §7.2).
verification_code: Option<String>The verification code proving the client controls the URL, copied by
the client from the pushed JmapPushVerification.
expires: Option<String>RFC 3339 time this subscription expires; the server may set or clamp it.
types: Option<Vec<String>>Type names pushes are restricted to; None pushes all types.
Trait Implementations§
Source§impl Clone for JmapPushSubscription
impl Clone for JmapPushSubscription
Source§fn clone(&self) -> JmapPushSubscription
fn clone(&self) -> JmapPushSubscription
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more