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§
§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).
Trait Implementations§
Source§impl Clone for PushSubscriptionCreateResponse
impl Clone for PushSubscriptionCreateResponse
Source§fn clone(&self) -> PushSubscriptionCreateResponse
fn clone(&self) -> PushSubscriptionCreateResponse
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<'de> Deserialize<'de> for PushSubscriptionCreateResponse
impl<'de> Deserialize<'de> for PushSubscriptionCreateResponse
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
Auto Trait Implementations§
impl Freeze for PushSubscriptionCreateResponse
impl RefUnwindSafe for PushSubscriptionCreateResponse
impl Send for PushSubscriptionCreateResponse
impl Sync for PushSubscriptionCreateResponse
impl Unpin for PushSubscriptionCreateResponse
impl UnsafeUnpin for PushSubscriptionCreateResponse
impl UnwindSafe for PushSubscriptionCreateResponse
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