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

/// ServerDeleteAccount — Delete an actor's account with a token and password. Can only be called after requesting a deletion token. Requires auth.
pub async fn server_delete_account(
    client: &crate::xrpc::Client,
    input: &ServerDeleteAccountInput,
) -> Result<(), crate::xrpc::Error> {
    let _: serde_json::Value = client
        .procedure("com.atproto.server.deleteAccount", input)
        .await?;
    Ok(())
}