pub struct JmapPushSubscriptionUpdate {
pub verification_code: Option<String>,
pub expires: Option<String>,
pub types: Option<Vec<String>>,
}Expand description
Patch object for PushSubscription/set update requests; only Some
fields are serialized.
url and keys are immutable (RFC 8620 §7.2.2): to change them, destroy
the subscription and create a new one.
Fields§
§verification_code: Option<String>The code from the pushed super::JmapPushVerification; an invalid
code is rejected with an invalidProperties set error.
expires: Option<String>New RFC 3339 expiry time extending (or shortening) the subscription lifetime; the server may clamp it.
types: Option<Vec<String>>Type names to restrict pushes to.
Trait Implementations§
Source§impl Clone for JmapPushSubscriptionUpdate
impl Clone for JmapPushSubscriptionUpdate
Source§fn clone(&self) -> JmapPushSubscriptionUpdate
fn clone(&self) -> JmapPushSubscriptionUpdate
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 JmapPushSubscriptionUpdate
impl Debug for JmapPushSubscriptionUpdate
Source§impl Default for JmapPushSubscriptionUpdate
impl Default for JmapPushSubscriptionUpdate
Source§fn default() -> JmapPushSubscriptionUpdate
fn default() -> JmapPushSubscriptionUpdate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JmapPushSubscriptionUpdate
impl RefUnwindSafe for JmapPushSubscriptionUpdate
impl Send for JmapPushSubscriptionUpdate
impl Sync for JmapPushSubscriptionUpdate
impl Unpin for JmapPushSubscriptionUpdate
impl UnsafeUnpin for JmapPushSubscriptionUpdate
impl UnwindSafe for JmapPushSubscriptionUpdate
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