| 8d2caf12 Andy McCall ↶ |
1 |
|
| d23464c0 Andy McCall ↶ |
2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| b64e2537 Andy McCall ↶ |
9 |
use schemars::JsonSchema; |
| d23464c0 Andy McCall ↶ |
10 |
use serde::{Deserialize, Serialize}; |
| 11 |
|
| 12 |
|
| b64e2537 Andy McCall ↶ |
13 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| d23464c0 Andy McCall ↶ |
14 |
pub struct Repository { |
| 15 |
pub owner: String, |
| 16 |
pub name: String, |
| 17 |
pub description: String, |
| 18 |
pub default_bookmark: String, |
| 19 |
pub visibility: Visibility, |
| 20 |
|
| 21 |
pub created_ms: i64, |
| 22 |
pub updated_ms: i64, |
| 23 |
|
| 24 |
pub clone_url: String, |
| 25 |
} |
| 26 |
|
| b64e2537 Andy McCall ↶ |
27 |
#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| d23464c0 Andy McCall ↶ |
28 |
#[serde(rename_all = "lowercase")] |
| 29 |
pub enum Visibility { |
| 30 |
Public, |
| 31 |
Internal, |
| 32 |
Private, |
| 33 |
} |
| 34 |
|
| 35 |
impl Visibility { |
| 36 |
pub fn as_str(self) -> &'static str { |
| 37 |
match self { |
| 38 |
Visibility::Public => "public", |
| 39 |
Visibility::Internal => "internal", |
| 40 |
Visibility::Private => "private", |
| 41 |
} |
| 42 |
} |
| 43 |
|
| 44 |
pub fn parse(s: &str) -> Option<Visibility> { |
| 45 |
Some(match s { |
| 46 |
"public" => Visibility::Public, |
| 47 |
"internal" => Visibility::Internal, |
| 48 |
"private" => Visibility::Private, |
| 49 |
_ => return None, |
| 50 |
}) |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
|
| b64e2537 Andy McCall ↶ |
55 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| d23464c0 Andy McCall ↶ |
56 |
pub struct Bookmark { |
| 57 |
pub name: String, |
| 58 |
pub heads: Vec<String>, |
| 59 |
|
| 60 |
pub changes: usize, |
| 61 |
pub default: bool, |
| 62 |
} |
| 63 |
|
| 64 |
|
| b64e2537 Andy McCall ↶ |
65 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| d23464c0 Andy McCall ↶ |
66 |
pub struct Tag { |
| 67 |
pub name: String, |
| 68 |
pub heads: Vec<String>, |
| 69 |
pub message: String, |
| 70 |
pub signer: Option<String>, |
| 71 |
} |
| 72 |
|
| 73 |
|
| b64e2537 Andy McCall ↶ |
74 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| d23464c0 Andy McCall ↶ |
75 |
pub struct ChangeSummary { |
| 76 |
pub hash: String, |
| 77 |
pub message: String, |
| 78 |
pub author: Author, |
| 79 |
pub when_ms: u64, |
| 80 |
pub deps: Vec<String>, |
| 81 |
pub head: bool, |
| 82 |
pub signature: Signature, |
| 8933faff Andy McCall ↶ |
83 |
|
| 84 |
#[serde(default, skip_serializing_if = "Option::is_none")] |
| 85 |
pub via: Option<Via>, |
| 86 |
} |
| 87 |
|
| 88 |
|
| 89 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 90 |
pub struct Via { |
| 91 |
pub name: String, |
| 92 |
pub key: String, |
| 93 |
|
| 94 |
pub scope: String, |
| 95 |
pub expires_ms: Option<u64>, |
| 96 |
|
| 97 |
pub revoked: bool, |
| d23464c0 Andy McCall ↶ |
98 |
} |
| 99 |
|
| 100 |
|
| 101 |
|
| b64e2537 Andy McCall ↶ |
102 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| d23464c0 Andy McCall ↶ |
103 |
pub struct Author { |
| 104 |
pub name: String, |
| 105 |
pub email: String, |
| 106 |
pub key: String, |
| 107 |
|
| 108 |
pub account: Option<String>, |
| 760a7dd3 Andy McCall ↶ |
109 |
|
| 110 |
|
| 111 |
#[serde(default, skip_serializing_if = "Option::is_none")] |
| 112 |
pub note: Option<String>, |
| 113 |
} |
| 114 |
|
| 115 |
impl Author { |
| 116 |
|
| 117 |
pub const UNLINKED: &'static str = |
| 118 |
"signed by a key not linked to any account; its owner links it under Settings → Keys (/settings/keys)"; |
| 119 |
|
| 120 |
|
| 121 |
pub fn note_for(key: &str, account: &Option<String>) -> Option<String> { |
| 122 |
(!key.is_empty() && account.is_none()).then(|| Self::UNLINKED.to_string()) |
| 123 |
} |
| d23464c0 Andy McCall ↶ |
124 |
} |
| 125 |
|
| 126 |
|
| b64e2537 Andy McCall ↶ |
127 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| d23464c0 Andy McCall ↶ |
128 |
#[serde(tag = "status", rename_all = "lowercase")] |
| 129 |
pub enum Signature { |
| 130 |
Unsigned, |
| 131 |
Valid { key: String, sealed: bool, revoked: bool }, |
| 132 |
Invalid { reason: String }, |
| 133 |
} |
| 134 |
|
| 135 |
|
| b64e2537 Andy McCall ↶ |
136 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| d23464c0 Andy McCall ↶ |
137 |
pub struct Problem { |
| 138 |
pub status: u16, |
| 139 |
pub title: String, |
| 140 |
pub detail: String, |
| 141 |
} |
| 142 |
|
| 143 |
#[cfg(test)] |
| 144 |
mod tests { |
| 145 |
use super::*; |
| 146 |
|
| 147 |
#[test] |
| 148 |
fn visibility_round_trips() { |
| 149 |
for v in [Visibility::Public, Visibility::Internal, Visibility::Private] { |
| 150 |
assert_eq!(Visibility::parse(v.as_str()), Some(v)); |
| 151 |
} |
| 152 |
assert_eq!(Visibility::parse("secret"), None); |
| 153 |
} |
| 154 |
} |
| de505df5 Andy McCall ↶ |
155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| b64e2537 Andy McCall ↶ |
159 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| de505df5 Andy McCall ↶ |
160 |
pub struct Proposal { |
| 161 |
pub number: i64, |
| 162 |
pub title: String, |
| 163 |
pub body: String, |
| 164 |
pub author: String, |
| 165 |
pub state: ProposalState, |
| 166 |
pub target: String, |
| 167 |
pub source: ProposalSource, |
| 168 |
|
| 169 |
pub changes: Vec<ChangeSummary>, |
| 170 |
|
| 171 |
pub projected_heads: Vec<String>, |
| 172 |
pub projected_state: Option<String>, |
| 173 |
pub conflicted: bool, |
| 174 |
pub approvals: Vec<Approval>, |
| 175 |
pub landable: bool, |
| 176 |
pub blockers: Vec<String>, |
| 177 |
pub created_ms: i64, |
| 178 |
pub updated_ms: i64, |
| 179 |
|
| 180 |
pub url: String, |
| 181 |
|
| 182 |
pub repository_url: String, |
| 183 |
|
| 184 |
pub source_url: Option<String>, |
| 0b20f1ec Andy McCall ↶ |
185 |
|
| 186 |
#[serde(default)] |
| 187 |
pub landed: Option<Landed>, |
| cc1cd197 Andy McCall ↶ |
188 |
|
| 189 |
#[serde(default)] |
| 190 |
pub requested_reviewers: Vec<String>, |
| 2291f8cc Andy McCall ↶ |
191 |
#[serde(default)] |
| 192 |
pub labels: Vec<Label>, |
| 0b20f1ec Andy McCall ↶ |
193 |
} |
| 194 |
|
| 195 |
|
| 196 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 197 |
pub struct Landed { |
| 198 |
pub by: String, |
| 199 |
|
| 200 |
pub via: String, |
| 201 |
pub when_ms: i64, |
| de505df5 Andy McCall ↶ |
202 |
} |
| 203 |
|
| b64e2537 Andy McCall ↶ |
204 |
#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| de505df5 Andy McCall ↶ |
205 |
#[serde(rename_all = "lowercase")] |
| 206 |
pub enum ProposalState { |
| 207 |
Draft, |
| 208 |
Open, |
| 209 |
Landed, |
| 210 |
Closed, |
| 211 |
} |
| 212 |
|
| 213 |
impl ProposalState { |
| 214 |
pub fn as_str(self) -> &'static str { |
| 215 |
match self { |
| 216 |
ProposalState::Draft => "draft", |
| 217 |
ProposalState::Open => "open", |
| 218 |
ProposalState::Landed => "landed", |
| 219 |
ProposalState::Closed => "closed", |
| 220 |
} |
| 221 |
} |
| 222 |
|
| 223 |
pub fn parse(s: &str) -> Option<ProposalState> { |
| 224 |
Some(match s { |
| 225 |
"draft" => ProposalState::Draft, |
| 226 |
"open" => ProposalState::Open, |
| 227 |
"landed" => ProposalState::Landed, |
| 228 |
"closed" => ProposalState::Closed, |
| 229 |
_ => return None, |
| 230 |
}) |
| 231 |
} |
| 232 |
} |
| 233 |
|
| b64e2537 Andy McCall ↶ |
234 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| de505df5 Andy McCall ↶ |
235 |
#[serde(tag = "kind", rename_all = "lowercase")] |
| 236 |
pub enum ProposalSource { |
| 237 |
|
| 238 |
Bookmark { bookmark: String }, |
| 239 |
|
| 240 |
Fork { owner: String, name: String, bookmark: String }, |
| 241 |
|
| 242 |
Changes { hashes: Vec<String> }, |
| 243 |
} |
| 244 |
|
| 245 |
|
| 246 |
|
| b64e2537 Andy McCall ↶ |
247 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| de505df5 Andy McCall ↶ |
248 |
pub struct Approval { |
| 249 |
pub account: String, |
| 250 |
pub sealed: bool, |
| 251 |
pub key: Option<String>, |
| 252 |
} |
| b64e2537 Andy McCall ↶ |
253 |
|
| 254 |
|
| 255 |
|
| 256 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 257 |
pub struct Issue { |
| 258 |
pub number: i64, |
| 259 |
pub title: String, |
| 260 |
pub body: String, |
| 261 |
pub author: String, |
| 262 |
pub state: String, |
| 263 |
pub reason: String, |
| 264 |
pub labels: Vec<Label>, |
| 265 |
pub assignees: Vec<String>, |
| 266 |
pub milestone: Option<String>, |
| 267 |
pub comments: i64, |
| 268 |
pub locked: bool, |
| 269 |
pub pinned: bool, |
| 270 |
pub created_ms: i64, |
| 271 |
pub updated_ms: i64, |
| 272 |
pub closed_ms: Option<i64>, |
| 273 |
pub url: String, |
| 274 |
} |
| 275 |
|
| 276 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 277 |
pub struct Label { |
| 278 |
pub name: String, |
| 279 |
pub colour: String, |
| 280 |
pub description: String, |
| 281 |
} |
| 282 |
|
| 283 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 284 |
pub struct Milestone { |
| 285 |
pub title: String, |
| 286 |
pub description: String, |
| 287 |
pub due_ms: Option<i64>, |
| 288 |
pub state: String, |
| 289 |
pub open: i64, |
| 290 |
pub closed: i64, |
| 291 |
} |
| 292 |
|
| 5ea4872f Andy McCall ↶ |
293 |
|
| 294 |
|
| b64e2537 Andy McCall ↶ |
295 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 5ea4872f Andy McCall ↶ |
296 |
pub struct NewMilestone { |
| 297 |
pub title: String, |
| 298 |
#[serde(default)] |
| 299 |
pub description: String, |
| 300 |
|
| 301 |
#[serde(default)] |
| 302 |
pub due: Option<String>, |
| 303 |
} |
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 308 |
pub struct MilestoneEdit { |
| 309 |
#[serde(default)] |
| 310 |
pub title: Option<String>, |
| 311 |
#[serde(default)] |
| 312 |
pub description: Option<String>, |
| 313 |
|
| 314 |
#[serde(default)] |
| 315 |
pub due: Option<String>, |
| 316 |
|
| 317 |
#[serde(default)] |
| 318 |
pub state: Option<String>, |
| 319 |
} |
| 320 |
|
| 321 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| b64e2537 Andy McCall ↶ |
322 |
pub struct Comment { |
| 323 |
pub id: i64, |
| 324 |
pub author: String, |
| 325 |
pub body: String, |
| 326 |
pub created_ms: i64, |
| 327 |
|
| 328 |
pub path: Option<String>, |
| 329 |
pub anchor: Option<Atom>, |
| 330 |
pub resolved: bool, |
| 331 |
} |
| 332 |
|
| 42a0ba4b Andy McCall ↶ |
333 |
|
| 334 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 335 |
pub struct Notification { |
| 336 |
pub id: i64, |
| 337 |
pub at_ms: i64, |
| 338 |
|
| 339 |
pub kind: String, |
| 340 |
pub title: String, |
| 341 |
|
| 342 |
pub url: String, |
| 343 |
pub actor: String, |
| 344 |
pub read: bool, |
| 345 |
} |
| 346 |
|
| 347 |
|
| 348 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 349 |
pub struct Inbox { |
| 350 |
pub unread: i64, |
| 351 |
pub items: Vec<Notification>, |
| 352 |
} |
| 353 |
|
| 3f02e5ea Andy McCall ↶ |
354 |
|
| 355 |
|
| 356 |
|
| b64e2537 Andy McCall ↶ |
357 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 3f02e5ea Andy McCall ↶ |
358 |
pub struct ProposalFile { |
| 359 |
pub path: String, |
| 360 |
|
| 361 |
pub from: Option<String>, |
| 362 |
|
| 363 |
pub kind: String, |
| 364 |
pub added: usize, |
| 365 |
pub removed: usize, |
| 366 |
} |
| 367 |
|
| 368 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| b64e2537 Andy McCall ↶ |
369 |
pub struct Atom { |
| 370 |
pub change: String, |
| 371 |
pub index: u32, |
| 372 |
} |
| 373 |
|
| 374 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 375 |
pub struct Review { |
| 376 |
pub id: i64, |
| 377 |
pub author: String, |
| 378 |
pub verdict: String, |
| 379 |
pub body: String, |
| 380 |
pub sealed: bool, |
| 381 |
pub created_ms: i64, |
| 382 |
} |
| 383 |
|
| 384 |
|
| 385 |
|
| 386 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 387 |
pub struct TreeEntry { |
| 388 |
pub name: String, |
| 389 |
pub path: String, |
| 390 |
pub kind: String, |
| 391 |
pub exec: bool, |
| 392 |
pub size: Option<u64>, |
| 393 |
pub conflicted: bool, |
| 394 |
} |
| 395 |
|
| 396 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 397 |
pub struct BlameLine { |
| 398 |
pub line: usize, |
| 399 |
pub change: String, |
| 400 |
pub index: u32, |
| 401 |
pub author: String, |
| 402 |
pub when_ms: u64, |
| 403 |
pub text: String, |
| 404 |
} |
| 405 |
|
| 406 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 407 |
pub struct FileChange { |
| 408 |
pub path: String, |
| 409 |
pub kind: String, |
| 410 |
pub from: Option<String>, |
| 411 |
pub added: usize, |
| 412 |
pub removed: usize, |
| 413 |
} |
| 414 |
|
| 415 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 416 |
pub struct ChangeDetail { |
| 417 |
pub change: ChangeSummary, |
| 418 |
pub body: String, |
| 419 |
pub dependents: Vec<String>, |
| 420 |
pub in_bookmarks: Vec<String>, |
| 421 |
pub in_tags: Vec<String>, |
| 422 |
pub files: Vec<FileChange>, |
| 423 |
} |
| 424 |
|
| 425 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 426 |
pub struct History { |
| 427 |
pub reference: String, |
| 428 |
pub heads: Vec<String>, |
| 429 |
pub total: usize, |
| 430 |
pub offset: usize, |
| 431 |
pub changes: Vec<ChangeSummary>, |
| 432 |
} |
| 433 |
|
| 434 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 435 |
pub struct Conflict { |
| 436 |
pub bookmark: String, |
| 437 |
pub path: String, |
| 438 |
pub kind: String, |
| 439 |
pub contributors: Vec<String>, |
| 440 |
} |
| 441 |
|
| 442 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 443 |
pub struct Push { |
| 444 |
pub at_ms: i64, |
| 445 |
pub pusher: String, |
| 446 |
pub reference: String, |
| 447 |
pub ok: bool, |
| 448 |
pub reason: String, |
| 449 |
pub old_state: String, |
| 450 |
pub new_state: String, |
| 451 |
pub heads: i64, |
| 452 |
pub changes: i64, |
| 453 |
} |
| 454 |
|
| 455 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 456 |
pub struct Trust { |
| 457 |
pub policy: Option<Policy>, |
| 458 |
pub signed: usize, |
| 459 |
pub sealed: usize, |
| 460 |
pub unsigned: usize, |
| 461 |
pub invalid: Vec<String>, |
| 462 |
pub hub_key: String, |
| 463 |
} |
| 464 |
|
| 465 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 466 |
pub struct Policy { |
| 467 |
pub serial: u64, |
| 468 |
pub expires_ms: u64, |
| 469 |
pub roots: Vec<String>, |
| 470 |
pub root_threshold: u32, |
| 471 |
pub rules: Vec<Rule>, |
| 472 |
} |
| 473 |
|
| 474 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 475 |
pub struct Rule { |
| 476 |
pub pattern: String, |
| 477 |
pub keys: Vec<String>, |
| 478 |
pub threshold: u32, |
| 479 |
pub require: String, |
| 480 |
pub allow_conflicts: bool, |
| 481 |
} |
| 482 |
|
| 483 |
|
| 484 |
|
| 485 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 486 |
pub struct Hook { |
| 487 |
pub id: i64, |
| 488 |
pub url: String, |
| 489 |
pub events: String, |
| 490 |
pub active: bool, |
| 491 |
pub created_ms: i64, |
| 492 |
} |
| 493 |
|
| 494 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 495 |
pub struct NewHook { |
| 496 |
pub url: String, |
| 497 |
pub secret: String, |
| 498 |
#[serde(default = "star")] |
| 499 |
pub events: String, |
| 500 |
} |
| 501 |
|
| 502 |
fn star() -> String { |
| 503 |
"*".into() |
| 504 |
} |
| 505 |
|
| 90326c96 Andy McCall ↶ |
506 |
|
| 507 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 508 |
pub struct FlowRun { |
| 509 |
|
| 510 |
pub number: i64, |
| 511 |
pub bookmark: String, |
| 512 |
|
| 513 |
pub state: String, |
| 514 |
|
| 515 |
pub heads: Vec<String>, |
| 516 |
|
| 517 |
pub status: String, |
| 518 |
|
| 519 |
pub trigger: String, |
| 520 |
pub actor: String, |
| 521 |
pub pipeline_hash: String, |
| 522 |
|
| 523 |
pub error: String, |
| 524 |
pub created_ms: i64, |
| 525 |
pub finished_ms: Option<i64>, |
| 526 |
pub url: String, |
| bf3d0754 Andy McCall ↶ |
527 |
|
| 528 |
|
| 529 |
#[serde(default, skip_serializing_if = "Option::is_none")] |
| 530 |
pub queue_position: Option<i64>, |
| 90326c96 Andy McCall ↶ |
531 |
|
| 532 |
#[serde(default, skip_serializing_if = "Vec::is_empty")] |
| 533 |
pub jobs: Vec<FlowJob>, |
| 534 |
} |
| 535 |
|
| 536 |
|
| 537 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 538 |
pub struct FlowJob { |
| 539 |
pub name: String, |
| 540 |
|
| 541 |
pub status: String, |
| 542 |
pub depends_on: Vec<String>, |
| 543 |
pub runner: String, |
| 544 |
pub exit_code: Option<i64>, |
| 545 |
pub error: String, |
| 546 |
pub started_ms: Option<i64>, |
| 547 |
pub finished_ms: Option<i64>, |
| 548 |
|
| 549 |
pub log_lines: i64, |
| 550 |
} |
| 551 |
|
| 552 |
|
| 553 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 554 |
pub struct FlowLogLine { |
| 555 |
|
| 556 |
pub seq: i64, |
| 557 |
|
| 558 |
pub t: i64, |
| 559 |
|
| 560 |
pub stream: String, |
| 561 |
pub text: String, |
| 562 |
} |
| 563 |
|
| b64e2537 Andy McCall ↶ |
564 |
|
| 565 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 566 |
pub struct Check { |
| 567 |
pub state: String, |
| 568 |
pub name: String, |
| 569 |
pub status: CheckStatus, |
| 570 |
pub summary: String, |
| 571 |
pub url: String, |
| 572 |
pub reporter: String, |
| 573 |
|
| 574 |
pub seal: Option<String>, |
| 575 |
pub started_ms: i64, |
| 576 |
pub finished_ms: Option<i64>, |
| 577 |
} |
| 578 |
|
| 579 |
#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 580 |
#[serde(rename_all = "lowercase")] |
| 581 |
pub enum CheckStatus { |
| 582 |
Queued, |
| 583 |
Running, |
| 584 |
Passed, |
| 585 |
Failed, |
| 586 |
Cancelled, |
| 587 |
Skipped, |
| 588 |
} |
| 589 |
|
| 590 |
impl CheckStatus { |
| 591 |
pub fn as_str(self) -> &'static str { |
| 592 |
match self { |
| 593 |
CheckStatus::Queued => "queued", |
| 594 |
CheckStatus::Running => "running", |
| 595 |
CheckStatus::Passed => "passed", |
| 596 |
CheckStatus::Failed => "failed", |
| 597 |
CheckStatus::Cancelled => "cancelled", |
| 598 |
CheckStatus::Skipped => "skipped", |
| 599 |
} |
| 600 |
} |
| 601 |
|
| 602 |
pub fn parse(s: &str) -> Option<CheckStatus> { |
| 603 |
Some(match s { |
| 604 |
"queued" => CheckStatus::Queued, |
| 605 |
"running" => CheckStatus::Running, |
| 606 |
"passed" => CheckStatus::Passed, |
| 607 |
"failed" => CheckStatus::Failed, |
| 608 |
"cancelled" => CheckStatus::Cancelled, |
| 609 |
"skipped" => CheckStatus::Skipped, |
| 610 |
_ => return None, |
| 611 |
}) |
| 612 |
} |
| 613 |
} |
| 614 |
|
| 615 |
|
| 616 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 617 |
pub struct NewCheck { |
| 618 |
pub state: String, |
| 619 |
pub name: String, |
| 620 |
pub status: CheckStatus, |
| 621 |
#[serde(default)] |
| 622 |
pub summary: String, |
| 623 |
#[serde(default)] |
| 624 |
pub url: String, |
| 625 |
|
| 626 |
#[serde(default)] |
| 627 |
pub seal: Option<String>, |
| 628 |
} |
| 629 |
|
| 630 |
|
| 631 |
|
| 632 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 633 |
pub struct User { |
| 634 |
pub username: String, |
| 635 |
pub display_name: String, |
| 636 |
pub is_admin: bool, |
| 637 |
pub keys: Vec<String>, |
| 638 |
pub created_ms: i64, |
| 639 |
} |
| 640 |
|
| 641 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 642 |
pub struct Organisation { |
| 643 |
pub name: String, |
| 644 |
pub display_name: String, |
| 645 |
pub description: String, |
| 646 |
pub members: Vec<String>, |
| 647 |
} |
| 648 |
|
| 649 |
|
| 650 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 651 |
pub struct NewRepository { |
| 652 |
pub owner: String, |
| 653 |
pub name: String, |
| 654 |
#[serde(default)] |
| 655 |
pub description: String, |
| 656 |
#[serde(default = "public")] |
| 657 |
pub visibility: Visibility, |
| 658 |
} |
| 659 |
|
| 660 |
fn public() -> Visibility { |
| 661 |
Visibility::Public |
| 662 |
} |
| 663 |
|
| 664 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 665 |
pub struct NewIssue { |
| 666 |
pub title: String, |
| 667 |
#[serde(default)] |
| 668 |
pub body: String, |
| 76f262e1 Andy McCall ↶ |
669 |
|
| 670 |
#[serde(default)] |
| 671 |
pub labels: Vec<String>, |
| 672 |
|
| 673 |
#[serde(default)] |
| 674 |
pub assignees: Vec<String>, |
| 675 |
|
| 676 |
#[serde(default)] |
| 677 |
pub milestone: Option<String>, |
| b64e2537 Andy McCall ↶ |
678 |
} |
| 679 |
|
| 76f262e1 Andy McCall ↶ |
680 |
|
| 681 |
|
| 682 |
#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 683 |
pub struct IssueEdit { |
| 684 |
#[serde(default)] |
| 685 |
pub title: Option<String>, |
| 686 |
#[serde(default)] |
| 687 |
pub body: Option<String>, |
| 688 |
|
| 689 |
#[serde(default)] |
| 690 |
pub labels: Option<Vec<String>>, |
| 691 |
|
| 692 |
#[serde(default)] |
| 693 |
pub assignees: Option<Vec<String>>, |
| 694 |
|
| 695 |
#[serde(default)] |
| 696 |
pub milestone: Option<String>, |
| 697 |
} |
| 698 |
|
| 961c10be Andy McCall ↶ |
699 |
|
| 700 |
|
| 701 |
|
| 702 |
#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 703 |
pub struct RequiredChecks { |
| 704 |
pub names: Vec<String>, |
| 705 |
} |
| 706 |
|
| ef20fdc1 Andy McCall ↶ |
707 |
|
| 708 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 709 |
pub struct Project { |
| 710 |
pub owner: String, |
| 711 |
pub number: i64, |
| 712 |
pub title: String, |
| 713 |
pub description: String, |
| 714 |
pub public: bool, |
| 715 |
pub closed: bool, |
| 716 |
pub updated_ms: i64, |
| 717 |
|
| 718 |
pub url: String, |
| 719 |
} |
| 720 |
|
| 721 |
|
| 722 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 723 |
pub struct ProjectCard { |
| 724 |
pub id: i64, |
| 725 |
|
| 726 |
pub kind: String, |
| 727 |
|
| 728 |
pub reference: String, |
| 729 |
|
| 730 |
pub title: String, |
| 731 |
|
| 732 |
pub state: String, |
| 733 |
} |
| 734 |
|
| 735 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 736 |
pub struct ProjectColumn { |
| 737 |
pub id: i64, |
| 738 |
pub name: String, |
| 739 |
pub cards: Vec<ProjectCard>, |
| 740 |
} |
| 741 |
|
| 742 |
|
| 743 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 744 |
pub struct Board { |
| 745 |
pub project: Project, |
| 746 |
pub columns: Vec<ProjectColumn>, |
| 747 |
} |
| 748 |
|
| 749 |
|
| 750 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 751 |
pub struct NewProject { |
| 752 |
pub title: String, |
| 753 |
#[serde(default)] |
| 754 |
pub description: String, |
| 755 |
#[serde(default)] |
| 756 |
pub private: bool, |
| 757 |
} |
| 758 |
|
| 759 |
|
| 760 |
#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 761 |
pub struct ProjectEdit { |
| 762 |
#[serde(default)] |
| 763 |
pub title: Option<String>, |
| 764 |
#[serde(default)] |
| 765 |
pub description: Option<String>, |
| 766 |
#[serde(default)] |
| 767 |
pub private: Option<bool>, |
| 768 |
#[serde(default)] |
| 769 |
pub closed: Option<bool>, |
| 770 |
} |
| 771 |
|
| 772 |
|
| 773 |
|
| 774 |
#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 775 |
pub struct NewCard { |
| 776 |
#[serde(default)] |
| 777 |
pub column: Option<String>, |
| 778 |
#[serde(default)] |
| 779 |
pub reference: String, |
| 780 |
#[serde(default)] |
| 781 |
pub note: String, |
| 782 |
} |
| 783 |
|
| 784 |
|
| 785 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 786 |
pub struct CardMove { |
| 787 |
pub column: String, |
| 788 |
} |
| 789 |
|
| 76f262e1 Andy McCall ↶ |
790 |
|
| 791 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 792 |
pub struct NewLabel { |
| 793 |
pub name: String, |
| 794 |
|
| 795 |
#[serde(default)] |
| 796 |
pub colour: Option<String>, |
| 797 |
#[serde(default)] |
| 798 |
pub description: String, |
| 799 |
} |
| 800 |
|
| b64e2537 Andy McCall ↶ |
801 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 802 |
pub struct NewComment { |
| 803 |
pub body: String, |
| 3f4b0ea6 Andy McCall ↶ |
804 |
|
| 805 |
|
| 806 |
#[serde(default)] |
| 807 |
pub path: Option<String>, |
| 808 |
#[serde(default)] |
| 809 |
pub line: Option<usize>, |
| b64e2537 Andy McCall ↶ |
810 |
} |
| 811 |
|
| 812 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 813 |
pub struct NewProposal { |
| 814 |
pub title: String, |
| 815 |
#[serde(default)] |
| 816 |
pub body: String, |
| 817 |
pub target: String, |
| 818 |
|
| 819 |
pub source: String, |
| 820 |
#[serde(default)] |
| 821 |
pub draft: bool, |
| cc1cd197 Andy McCall ↶ |
822 |
} |
| 823 |
|
| 824 |
|
| 825 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 826 |
pub struct ReviewRequest { |
| 827 |
pub reviewers: Vec<String>, |
| b64e2537 Andy McCall ↶ |
828 |
} |
| 829 |
|
| 830 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 831 |
pub struct NewReview { |
| 832 |
pub verdict: String, |
| 833 |
#[serde(default)] |
| 834 |
pub body: String, |
| 835 |
} |
| 836 |
|
| 837 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 838 |
pub struct IssueStateChange { |
| 839 |
|
| 840 |
pub state: String, |
| 841 |
#[serde(default)] |
| 842 |
pub reason: String, |
| 843 |
} |
| 844 |
|
| 845 |
|
| 846 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 847 |
pub struct WebhookEnvelope { |
| 848 |
pub event: String, |
| 849 |
pub delivery: String, |
| 850 |
pub repository: Option<Repository>, |
| 851 |
pub actor: String, |
| 852 |
pub at_ms: i64, |
| 853 |
pub data: serde_json::Value, |
| 854 |
} |
| 855 |
|
| 856 |
|
| 857 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 858 |
pub struct ProposalEvent { |
| 859 |
pub number: i64, |
| 860 |
pub kind: String, |
| 861 |
pub check: Option<Check>, |
| 862 |
} |
| 863 |
|
| 3f4b0ea6 Andy McCall ↶ |
864 |
|
| 865 |
|
| 866 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 867 |
pub struct Release { |
| 868 |
pub tag: String, |
| 869 |
pub title: String, |
| 870 |
pub notes: String, |
| 871 |
pub prerelease: bool, |
| 872 |
pub latest: bool, |
| 873 |
pub author: String, |
| 874 |
pub heads: Vec<String>, |
| 875 |
pub signer: Option<String>, |
| 876 |
pub assets: Vec<ReleaseAsset>, |
| 877 |
pub archives: Vec<String>, |
| 878 |
pub created_ms: i64, |
| 879 |
pub url: String, |
| 880 |
} |
| 881 |
|
| 882 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 883 |
pub struct ReleaseAsset { |
| 884 |
pub name: String, |
| 885 |
pub size: i64, |
| 886 |
|
| 887 |
pub hash: String, |
| 888 |
pub content_type: String, |
| 889 |
pub downloads: i64, |
| 890 |
pub url: String, |
| 10708ab8 Andy McCall ↶ |
891 |
|
| 892 |
#[serde(default, skip_serializing_if = "Option::is_none")] |
| 893 |
pub built_by: Option<AssetBuild>, |
| 894 |
} |
| 895 |
|
| 896 |
|
| 897 |
|
| 898 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 899 |
pub struct AssetBuild { |
| 900 |
pub run: i64, |
| 901 |
pub job: String, |
| 902 |
pub artifact: String, |
| 903 |
pub run_url: String, |
| 904 |
|
| 905 |
pub receipt: Option<String>, |
| 906 |
pub receipt_url: Option<String>, |
| 907 |
pub signer: Option<String>, |
| 3f4b0ea6 Andy McCall ↶ |
908 |
} |
| 909 |
|
| 739a763a Andy McCall ↶ |
910 |
|
| 911 |
|
| 912 |
#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 913 |
pub struct ProposalEdit { |
| 914 |
#[serde(default, skip_serializing_if = "Option::is_none")] |
| 915 |
pub title: Option<String>, |
| 916 |
#[serde(default, skip_serializing_if = "Option::is_none")] |
| 917 |
pub body: Option<String>, |
| 2291f8cc Andy McCall ↶ |
918 |
|
| 919 |
#[serde(default, skip_serializing_if = "Option::is_none")] |
| 920 |
pub labels: Option<Vec<String>>, |
| 739a763a Andy McCall ↶ |
921 |
} |
| 922 |
|
| ced6d3af Andy McCall ↶ |
923 |
|
| 924 |
|
| 925 |
#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 926 |
pub struct ReleaseEdit { |
| 927 |
#[serde(default, skip_serializing_if = "Option::is_none")] |
| 928 |
pub title: Option<String>, |
| 929 |
#[serde(default, skip_serializing_if = "Option::is_none")] |
| 930 |
pub notes: Option<String>, |
| 931 |
#[serde(default, skip_serializing_if = "Option::is_none")] |
| 932 |
pub prerelease: Option<bool>, |
| 933 |
} |
| 934 |
|
| 3f4b0ea6 Andy McCall ↶ |
935 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 936 |
pub struct NewRelease { |
| 937 |
pub tag: String, |
| 938 |
pub title: String, |
| 939 |
#[serde(default)] |
| 940 |
pub notes: Option<String>, |
| 941 |
#[serde(default)] |
| 942 |
pub prerelease: bool, |
| 943 |
} |
| 944 |
|
| b64e2537 Andy McCall ↶ |
945 |
|
| 946 |
pub fn schemas() -> Vec<(&'static str, schemars::Schema)> { |
| 947 |
vec![ |
| 948 |
("Repository", schemars::schema_for!(Repository)), |
| 949 |
("Visibility", schemars::schema_for!(Visibility)), |
| 950 |
("Bookmark", schemars::schema_for!(Bookmark)), |
| 951 |
("Tag", schemars::schema_for!(Tag)), |
| 952 |
("ChangeSummary", schemars::schema_for!(ChangeSummary)), |
| 953 |
("Author", schemars::schema_for!(Author)), |
| 954 |
("Signature", schemars::schema_for!(Signature)), |
| 955 |
("Problem", schemars::schema_for!(Problem)), |
| 956 |
("Proposal", schemars::schema_for!(Proposal)), |
| 957 |
("ProposalState", schemars::schema_for!(ProposalState)), |
| 958 |
("ProposalSource", schemars::schema_for!(ProposalSource)), |
| 959 |
("Approval", schemars::schema_for!(Approval)), |
| 960 |
("Issue", schemars::schema_for!(Issue)), |
| 961 |
("Label", schemars::schema_for!(Label)), |
| 962 |
("Milestone", schemars::schema_for!(Milestone)), |
| 5ea4872f Andy McCall ↶ |
963 |
("NewMilestone", schemars::schema_for!(NewMilestone)), |
| 964 |
("MilestoneEdit", schemars::schema_for!(MilestoneEdit)), |
| b64e2537 Andy McCall ↶ |
965 |
("Comment", schemars::schema_for!(Comment)), |
| 3f02e5ea Andy McCall ↶ |
966 |
("ProposalFile", schemars::schema_for!(ProposalFile)), |
| 42a0ba4b Andy McCall ↶ |
967 |
("Notification", schemars::schema_for!(Notification)), |
| 968 |
("Inbox", schemars::schema_for!(Inbox)), |
| b64e2537 Andy McCall ↶ |
969 |
("Atom", schemars::schema_for!(Atom)), |
| 970 |
("Review", schemars::schema_for!(Review)), |
| 971 |
("TreeEntry", schemars::schema_for!(TreeEntry)), |
| 972 |
("BlameLine", schemars::schema_for!(BlameLine)), |
| 973 |
("FileChange", schemars::schema_for!(FileChange)), |
| 974 |
("ChangeDetail", schemars::schema_for!(ChangeDetail)), |
| 975 |
("History", schemars::schema_for!(History)), |
| 976 |
("Conflict", schemars::schema_for!(Conflict)), |
| 977 |
("Push", schemars::schema_for!(Push)), |
| 978 |
("Trust", schemars::schema_for!(Trust)), |
| 979 |
("Policy", schemars::schema_for!(Policy)), |
| 980 |
("Rule", schemars::schema_for!(Rule)), |
| 981 |
("Hook", schemars::schema_for!(Hook)), |
| 982 |
("NewHook", schemars::schema_for!(NewHook)), |
| 983 |
("Check", schemars::schema_for!(Check)), |
| 984 |
("CheckStatus", schemars::schema_for!(CheckStatus)), |
| 985 |
("NewCheck", schemars::schema_for!(NewCheck)), |
| 986 |
("User", schemars::schema_for!(User)), |
| 987 |
("Organisation", schemars::schema_for!(Organisation)), |
| 988 |
("NewRepository", schemars::schema_for!(NewRepository)), |
| 989 |
("NewIssue", schemars::schema_for!(NewIssue)), |
| 76f262e1 Andy McCall ↶ |
990 |
("IssueEdit", schemars::schema_for!(IssueEdit)), |
| 2291f8cc Andy McCall ↶ |
991 |
("ReleaseEdit", schemars::schema_for!(ReleaseEdit)), |
| 992 |
("ProposalEdit", schemars::schema_for!(ProposalEdit)), |
| 76f262e1 Andy McCall ↶ |
993 |
("NewLabel", schemars::schema_for!(NewLabel)), |
| 961c10be Andy McCall ↶ |
994 |
("RequiredChecks", schemars::schema_for!(RequiredChecks)), |
| ef20fdc1 Andy McCall ↶ |
995 |
("Project", schemars::schema_for!(Project)), |
| 996 |
("ProjectCard", schemars::schema_for!(ProjectCard)), |
| 997 |
("ProjectColumn", schemars::schema_for!(ProjectColumn)), |
| 998 |
("Board", schemars::schema_for!(Board)), |
| 999 |
("NewProject", schemars::schema_for!(NewProject)), |
| 1000 |
("ProjectEdit", schemars::schema_for!(ProjectEdit)), |
| 1001 |
("NewCard", schemars::schema_for!(NewCard)), |
| 1002 |
("CardMove", schemars::schema_for!(CardMove)), |
| b64e2537 Andy McCall ↶ |
1003 |
("NewComment", schemars::schema_for!(NewComment)), |
| 1004 |
("NewProposal", schemars::schema_for!(NewProposal)), |
| 1005 |
("NewReview", schemars::schema_for!(NewReview)), |
| 1006 |
("IssueStateChange", schemars::schema_for!(IssueStateChange)), |
| 1007 |
("WebhookEnvelope", schemars::schema_for!(WebhookEnvelope)), |
| 1008 |
("ProposalEvent", schemars::schema_for!(ProposalEvent)), |
| 3f4b0ea6 Andy McCall ↶ |
1009 |
("Release", schemars::schema_for!(Release)), |
| 1010 |
("ReleaseAsset", schemars::schema_for!(ReleaseAsset)), |
| 1011 |
("NewRelease", schemars::schema_for!(NewRelease)), |
| b64e2537 Andy McCall ↶ |
1012 |
] |
| 1013 |
} |
| b66e70b7 Andy McCall ↶ |
1014 |
|
| 1015 |
|
| 1016 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 1017 |
pub struct Runner { |
| 1018 |
pub id: i64, |
| 1019 |
pub name: String, |
| 1020 |
|
| 1021 |
pub status: String, |
| 1022 |
|
| 1023 |
pub serves: String, |
| 1024 |
pub arch: String, |
| 1025 |
pub os: String, |
| 1026 |
pub version: String, |
| 1027 |
pub labels: Vec<String>, |
| 1028 |
pub max_jobs: i64, |
| 1029 |
pub memory_mib: Option<i64>, |
| 1030 |
pub cpus: Option<i64>, |
| 1031 |
|
| 1032 |
pub key: String, |
| 1033 |
|
| 1034 |
pub source: String, |
| 1035 |
pub last_seen_ms: Option<i64>, |
| 1036 |
|
| 1037 |
pub running: i64, |
| 1038 |
} |
| 1039 |
|
| 1040 |
|
| 1041 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 1042 |
pub struct RunnerJob { |
| 1043 |
pub repo: String, |
| 1044 |
pub run: i64, |
| 1045 |
pub job: String, |
| 1046 |
pub status: String, |
| 1047 |
pub started_ms: Option<i64>, |
| 1048 |
pub finished_ms: Option<i64>, |
| 1049 |
} |
| 1050 |
|
| 1051 |
|
| 1052 |
|
| 1053 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] |
| 1054 |
pub struct QueueItem { |
| 1055 |
pub repo: String, |
| 1056 |
pub run: i64, |
| 1057 |
pub job: String, |
| 1058 |
|
| 1059 |
pub status: String, |
| 1060 |
|
| 1061 |
pub runner: String, |
| 1062 |
} |