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 ServerDeactivateAccountInput {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub delete_after: Option<crate::syntax::Datetime>,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// ServerDeactivateAccount — Deactivates a currently active account. Stops serving of repo, and future writes to repo until re...
pub async fn server_deactivate_account(
    client: &crate::xrpc::Client,
    input: &ServerDeactivateAccountInput,
) -> Result<(), crate::xrpc::Error> {
    let _: serde_json::Value = client
        .procedure("com.atproto.server.deactivateAccount", input)
        .await?;
    Ok(())
}