tangled-api 0.1.0

Lexicon-generated XRPC client for Tangled and AT Protocol APIs
Documentation
// @generated by `cargo xtask codegen` — do not edit.
// source: lexicons/feed/comment.json (sh.tangled.feed.comment)

#![allow(clippy::all)]

pub const NSID: &str = "sh.tangled.feed.comment";

#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
pub struct Record {
    /// Record type discriminator (`$type`); set to [`NSID`] when writing.
    #[serde(
        rename = "$type",
        skip_serializing_if = "Option::is_none",
        default
    )]
    pub r#type: Option<String>,
    pub body: serde_json::Value,
    #[serde(rename = "createdAt")]
    pub created_at: String,
    /// optional pull submission round index. required when subject is sh.tangled.repo.pull
    #[serde(
        rename = "pullRoundIdx",
        skip_serializing_if = "Option::is_none",
        default
    )]
    pub pull_round_idx: Option<i64>,
    #[serde(
        rename = "replyTo",
        skip_serializing_if = "Option::is_none",
        default
    )]
    pub reply_to:
        Option<crate::lexicon::com::atproto::repo::strong_ref::StrongRef>,
    pub subject: crate::lexicon::com::atproto::repo::strong_ref::StrongRef,
    /// Unknown fields, preserved across read-modify-write round-trips.
    #[serde(flatten)]
    pub extra: serde_json::Map<String, serde_json::Value>,
}