21 lines
500 B
Rust
21 lines
500 B
Rust
use std::collections::HashMap;
|
|
use serde::{Deserialize, Serialize};
|
|
use serde_value::Value;
|
|
|
|
#[derive(Debug, Deserialize, Serialize)]
|
|
pub struct BuildManifest {
|
|
#[serde(default)]
|
|
pub sources: Option<Vec<String>>,
|
|
#[serde(flatten)]
|
|
pub other: HashMap<String, Value>,
|
|
}
|
|
|
|
#[derive(Debug, Serialize)]
|
|
pub struct SubmitBuildPayload {
|
|
pub manifest: String,
|
|
pub note: Option<String>,
|
|
pub tags: Option<Vec<String>>,
|
|
pub execute: Option<bool>,
|
|
pub secrets: Option<bool>,
|
|
}
|