#[non_exhaustive]pub struct PushKeys {
pub p256dh: String,
pub auth: String,
pub extra: Map<String, Value>,
}Expand description
The keys object of a PushSubscription (RFC 8620 §7.2).
“The object MUST have the following properties: p256dh … auth”, so both
are required on deserialize. The Debug impl redacts auth.
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.p256dh: StringThe p256dh property: the client’s P-256 ECDH public key (RFC 8291),
URL-safe base64.
auth: StringThe auth property: the RFC 8291 authentication secret, URL-safe
base64.
extra: Map<String, Value>Catch-all for vendor / site / private extension fields, per workspace extras-preservation policy (see workspace AGENTS.md).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PushKeys
impl<'de> Deserialize<'de> for PushKeys
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PushKeys
impl StructuralPartialEq for PushKeys
Auto Trait Implementations§
impl Freeze for PushKeys
impl RefUnwindSafe for PushKeys
impl Send for PushKeys
impl Sync for PushKeys
impl Unpin for PushKeys
impl UnsafeUnpin for PushKeys
impl UnwindSafe for PushKeys
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