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 ContactSendNotificationInput {
    pub from: crate::syntax::Did,
    pub to: crate::syntax::Did,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

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

/// ContactSendNotification — System endpoint to send notifications related to contact imports. Requires role authentication.
pub async fn contact_send_notification(
    client: &crate::xrpc::Client,
    input: &ContactSendNotificationInput,
) -> Result<ContactSendNotificationOutput, crate::xrpc::Error> {
    client
        .procedure("app.bsky.contact.sendNotification", input)
        .await
}