#[non_exhaustive]pub struct PushSubscriptionCreateResponse {
pub account_id: Option<Id>,
pub created: Option<HashMap<String, Value>>,
pub not_created: Option<HashMap<String, SetError>>,
pub extra: Map<String, Value>,
}Expand description
Response to a PushSubscription/set create call (RFC 8620 §7.2).
account_id is always null for PushSubscription objects (they are not
account-scoped). Option<Id> handles both the null case and servers that
echo the session accountId anyway.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.account_id: Option<Id>The account this response refers to. Always None for PushSubscription
(not account-scoped); preserved as Option<Id> for servers that echo it.
created: Option<HashMap<String, Value>>Successfully created subscriptions, keyed by the caller-supplied creation key.
not_created: Option<HashMap<String, SetError>>Creation failures, keyed by the caller-supplied creation key.
extra: Map<String, Value>Catch-all for vendor / site / private extension fields not covered by the typed fields above. Preserves unknown fields across deserialize/serialize round-trip per workspace extras-preservation policy (see workspace AGENTS.md).
Constraint: keys in extra MUST NOT collide with the
typed-field wire names above (the camelCase spelling — e.g.
"accountId", "ids", "properties", "blobIds",
"fromAccountId", etc.). On collision the typed-field value
wins on the wire and the extra value is silently dropped at
serialization. Place vendor extensions under vendor-prefixed
keys (e.g. "acmeCorpFoo") to avoid the collision class.
Trait Implementations§
Source§impl Clone for PushSubscriptionCreateResponse
impl Clone for PushSubscriptionCreateResponse
Source§fn clone(&self) -> PushSubscriptionCreateResponse
fn clone(&self) -> PushSubscriptionCreateResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more