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 ActorPutPreferencesInput {
    pub preferences: crate::api::app::bsky::ActorDefsPreferences,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// ActorPutPreferences — Set the private preferences attached to the account.
pub async fn actor_put_preferences(
    client: &crate::xrpc::Client,
    input: &ActorPutPreferencesInput,
) -> Result<(), crate::xrpc::Error> {
    let _: serde_json::Value = client
        .procedure("app.bsky.actor.putPreferences", input)
        .await?;
    Ok(())
}