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

#![allow(clippy::all)]

pub mod add_collaborator;
pub use add_collaborator::add_collaborator;
pub mod add_secret;
pub use add_secret::add_secret;
pub mod archive;
pub use archive::archive;
pub mod artifact;
pub mod blob;
pub use blob::blob;
pub mod branch;
pub use branch::branch;
pub mod branches;
pub use branches::branches;
pub mod collaborator;
pub mod compare;
pub use compare::compare;
pub mod create;
pub use create::create;
pub mod delete;
pub use delete::delete;
pub mod delete_branch;
pub use delete_branch::delete_branch;
pub mod describe_repo;
pub use describe_repo::describe_repo;
pub mod diff;
pub use diff::diff;
pub mod fork_status;
pub use fork_status::fork_status;
pub mod fork_sync;
pub use fork_sync::fork_sync;
pub mod get_default_branch;
pub use get_default_branch::get_default_branch;
pub mod hidden_ref;
pub use hidden_ref::hidden_ref;
pub mod issue;
pub mod languages;
pub use languages::languages;
pub mod list_collaborators;
pub use list_collaborators::list_collaborators;
pub mod list_collaborators_by;
pub use list_collaborators_by::list_collaborators_by;
pub mod list_secrets;
pub use list_secrets::list_secrets;
pub mod log;
pub use log::log;
pub mod merge;
pub use merge::merge;
pub mod merge_check;
pub use merge_check::merge_check;
pub mod pull;
pub mod remove_collaborator;
pub use remove_collaborator::remove_collaborator;
pub mod remove_secret;
pub use remove_secret::remove_secret;
pub mod set_default_branch;
pub use set_default_branch::set_default_branch;
pub mod tag;
pub use tag::tag;
pub mod tags;
pub use tags::tags;
pub mod tree;
pub use tree::tree;

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

#[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>,
    #[serde(rename = "createdAt")]
    pub created_at: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub description: Option<String>,
    /// knot where the repo was created
    pub knot: String,
    /// List of labels that this repo subscribes to
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub labels: Option<Vec<String>>,
    /// Cosmetic name of the repo.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub name: Option<String>,
    /// DID of the repo itself, if assigned
    #[serde(
        rename = "repoDid",
        skip_serializing_if = "Option::is_none",
        default
    )]
    pub repo_did: Option<String>,
    /// source of the repo
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub source: Option<String>,
    /// CI runner to send jobs to and receive results from
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub spindle: Option<String>,
    /// Topics related to the repo
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub topics: Option<Vec<String>>,
    /// Any URI related to the repo
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub website: Option<String>,
    /// Unknown fields, preserved across read-modify-write round-trips.
    #[serde(flatten)]
    pub extra: serde_json::Map<String, serde_json::Value>,
}