pub struct JmapPushSubscriptionCreate {
pub device_client_id: String,
pub url: String,
pub keys: Option<JmapPushSubscriptionKeys>,
pub expires: Option<String>,
pub types: Option<Vec<String>>,
}Expand description
A partial JmapPushSubscription for PushSubscription/set create
requests.
verificationCode MUST NOT be set on create (RFC 8620 §7.2): the server
pushes a super::JmapPushVerification to url and the client copies the
code back via JmapPushSubscriptionUpdate.
Fields§
§device_client_id: StringAn ID unique to the client + device, containing no unobfuscated device ID (RFC 8620 §7.2).
url: StringAbsolute https:// URL the server will POST push messages to.
keys: Option<JmapPushSubscriptionKeys>Client-generated encryption keys; when supplied, the server MUST encrypt all pushed data with them.
expires: Option<String>RFC 3339 expiry time; the server may clamp it.
types: Option<Vec<String>>Type names to restrict pushes to; None pushes all types.
Trait Implementations§
Source§impl Clone for JmapPushSubscriptionCreate
impl Clone for JmapPushSubscriptionCreate
Source§fn clone(&self) -> JmapPushSubscriptionCreate
fn clone(&self) -> JmapPushSubscriptionCreate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JmapPushSubscriptionCreate
impl Debug for JmapPushSubscriptionCreate
Source§impl Default for JmapPushSubscriptionCreate
impl Default for JmapPushSubscriptionCreate
Source§fn default() -> JmapPushSubscriptionCreate
fn default() -> JmapPushSubscriptionCreate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JmapPushSubscriptionCreate
impl RefUnwindSafe for JmapPushSubscriptionCreate
impl Send for JmapPushSubscriptionCreate
impl Sync for JmapPushSubscriptionCreate
impl Unpin for JmapPushSubscriptionCreate
impl UnsafeUnpin for JmapPushSubscriptionCreate
impl UnwindSafe for JmapPushSubscriptionCreate
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