#[non_exhaustive]pub struct PushVerification {
pub push_subscription_id: Id,
pub verification_code: String,
pub extra: Map<String, Value>,
}Expand description
The object pushed to a new subscription’s URL (RFC 8620 §7.2.2).
The wire form always carries "@type": "PushVerification"; see the
module docs for how the discriminant is handled. The Debug impl
redacts verificationCode.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.push_subscription_id: IdThe pushSubscriptionId property: the id of the new subscription.
verification_code: StringThe verificationCode property: the code the client must set on the
subscription before the server sends it anything else.
extra: Map<String, Value>Catch-all for vendor / site / private extension fields, per
workspace extras-preservation policy (see workspace AGENTS.md).
Never contains @type.
Trait Implementations§
Source§impl Clone for PushVerification
impl Clone for PushVerification
Source§impl Debug for PushVerification
impl Debug for PushVerification
Source§impl<'de> Deserialize<'de> for PushVerification
impl<'de> Deserialize<'de> for PushVerification
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PushVerification
Source§impl PartialEq for PushVerification
impl PartialEq for PushVerification
Source§impl Serialize for PushVerification
impl Serialize for PushVerification
impl StructuralPartialEq for PushVerification
Auto Trait Implementations§
impl Freeze for PushVerification
impl RefUnwindSafe for PushVerification
impl Send for PushVerification
impl Sync for PushVerification
impl Unpin for PushVerification
impl UnsafeUnpin for PushVerification
impl UnwindSafe for PushVerification
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