shrike 0.1.0

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 NotificationRegisterPushInput {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub age_restricted: Option<bool>,
    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>,
}

/// NotificationRegisterPush — Register to receive push notifications, via a specified service, for the requesting account. Requ...
pub async fn notification_register_push(
    client: &crate::xrpc::Client,
    input: &NotificationRegisterPushInput,
) -> Result<(), crate::xrpc::Error> {
    let _: serde_json::Value = client
        .procedure("app.bsky.notification.registerPush", input)
        .await?;
    Ok(())
}