shrike 0.1.1

AT Protocol library for Rust
Documentation
// Code generated by lexgen. DO NOT EDIT.

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct NotificationUnregisterPushInput {
    pub app_id: String,
    pub platform: String,
    pub service_did: crate::syntax::Did,
    pub token: String,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// NotificationUnregisterPush — The inverse of registerPush - inform a specified service that push notifications should no longer be sent to the given token for the requesting account. Requires auth.
pub async fn notification_unregister_push(
    client: &crate::xrpc::Client,
    input: &NotificationUnregisterPushInput,
) -> Result<(), crate::xrpc::Error> {
    let _: serde_json::Value = client
        .procedure("app.bsky.notification.unregisterPush", input)
        .await?;
    Ok(())
}