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 GraphGetFollowsParams {
    pub actor: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cursor: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub limit: Option<i64>,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct GraphGetFollowsOutput {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cursor: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub follows: Vec<crate::api::app::bsky::ActorDefsProfileView>,
    pub subject: crate::api::app::bsky::ActorDefsProfileView,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// GraphGetFollows — Enumerates accounts which a specified account (actor) follows.
pub async fn graph_get_follows(
    client: &crate::xrpc::Client,
    params: &GraphGetFollowsParams,
) -> Result<GraphGetFollowsOutput, crate::xrpc::Error> {
    client.query("app.bsky.graph.getFollows", params).await
}