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 AdminUpdateAccountEmailInput {
    /// The handle or DID of the repo.
    pub account: crate::syntax::AtIdentifier,
    pub email: String,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// AdminUpdateAccountEmail — Administrative action to update an account's email.
pub async fn admin_update_account_email(
    client: &crate::xrpc::Client,
    input: &AdminUpdateAccountEmailInput,
) -> Result<(), crate::xrpc::Error> {
    let _: serde_json::Value = client
        .procedure("com.atproto.admin.updateAccountEmail", input)
        .await?;
    Ok(())
}