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.feed.getPostThread

use serde::{Deserialize, Serialize};

/// Get posts in a thread. Does not require auth, but additional metadata and filtering will be applied for authed requests.
/// XRPC Query: app.bsky.feed.getPostThread
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Params {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub depth: Option<i64>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub parent_height: Option<i64>,
    pub uri: String,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Output {
    pub thread: serde_json::Value,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub threadgate: Option<crate::app::bsky::feed::defs::ThreadgateView>,
}