proto-blue-api 0.2.1

AT Protocol high-level API: agent, rich text, moderation, generated types
Documentation
// Generated by atproto-codegen. Do not edit.
//! Lexicon: app.bsky.graph.getStarterPacksWithMembership

use serde::{Deserialize, Serialize};

/// Enumerates the starter packs created by the session user, and includes membership information about `actor` in those starter packs. Requires auth.
/// XRPC Query: app.bsky.graph.getStarterPacksWithMembership
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Params {
    pub actor: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub cursor: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub limit: Option<i64>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Output {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub cursor: Option<String>,
    pub starter_packs_with_membership: Vec<StarterPackWithMembership>,
}

/// A starter pack and an optional list item indicating membership of a target user to that starter pack.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct StarterPackWithMembership {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub list_item: Option<crate::app::bsky::graph::defs::ListItemView>,
    pub starter_pack: crate::app::bsky::graph::defs::StarterPackView,
}