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/repo/artifact.json (sh.tangled.repo.artifact)

#![allow(clippy::all)]

pub const NSID: &str = "sh.tangled.repo.artifact";

#[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>,
    /// the artifact
    pub artifact: crate::types::BlobRef,
    /// time of creation of this artifact
    #[serde(rename = "createdAt")]
    pub created_at: String,
    /// name of the artifact
    pub name: String,
    /// repo that this artifact is being uploaded to
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub repo: Option<String>,
    #[serde(
        rename = "repoDid",
        skip_serializing_if = "Option::is_none",
        default
    )]
    pub repo_did: Option<String>,
    /// hash of the tag object that this artifact is attached to (only annotated tags are supported)
    pub tag: serde_json::Value,
    /// Unknown fields, preserved across read-modify-write round-trips.
    #[serde(flatten)]
    pub extra: serde_json::Map<String, serde_json::Value>,
}