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

#![allow(clippy::all)]

/// A CI pipeline. Record-like, but owned by the spindle rather than a PDS.
#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
pub struct Pipeline {
    /// Commit Id this pipeline is running on
    pub commit: String,
    #[serde(
        rename = "createdAt",
        skip_serializing_if = "Option::is_none",
        default
    )]
    pub created_at: Option<String>,
    /// Spindle-local pipeline id
    pub id: String,
    /// Repository DID
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub repo: Option<String>,
    /// Repository DID that the commit was checked out from, if different from repo (e.g. a fork for a fork-based pull request)
    #[serde(
        rename = "sourceRepo",
        skip_serializing_if = "Option::is_none",
        default
    )]
    pub source_repo: Option<String>,
    pub trigger: serde_json::Value,
    /// Triggered workflows
    pub workflows: Vec<crate::lexicon::sh::tangled::ci::pipeline::Workflow>,
    /// Unknown fields, preserved across read-modify-write round-trips.
    #[serde(flatten)]
    pub extra: serde_json::Map<String, serde_json::Value>,
}

#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
pub struct Workflow {
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub error: Option<String>,
    #[serde(
        rename = "finishedAt",
        skip_serializing_if = "Option::is_none",
        default
    )]
    pub finished_at: Option<String>,
    /// Spindle-local workflow id. Unique per pipeline, usually same as name.
    pub id: String,
    /// Name of the workflow
    pub name: String,
    #[serde(
        rename = "startedAt",
        skip_serializing_if = "Option::is_none",
        default
    )]
    pub started_at: Option<String>,
    /// Workflow status
    pub status: String,
    /// Unknown fields, preserved across read-modify-write round-trips.
    #[serde(flatten)]
    pub extra: serde_json::Map<String, serde_json::Value>,
}