shrike 0.1.0

AT Protocol library for Rust
Documentation
// Code generated by lexgen. DO NOT EDIT.

#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ActorGetPreferencesParams {}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ActorGetPreferencesOutput {
    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>,
}

/// ActorGetPreferences — Get private preferences attached to the current account. Expected use is synchronization between ...
pub async fn actor_get_preferences(
    client: &crate::xrpc::Client,
    params: &ActorGetPreferencesParams,
) -> Result<ActorGetPreferencesOutput, crate::xrpc::Error> {
    client.query("app.bsky.actor.getPreferences", params).await
}