Skip to main content

hanzo_client/models/
github_backfill_result.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GithubBackfillResult {
16    /// Created is how many native issues this pass created.
17    #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
18    pub created: Option<i32>,
19    /// Failed is how many repos or issues errored; the pass continues past each.
20    #[serde(rename = "failed", skip_serializing_if = "Option::is_none")]
21    pub failed: Option<i32>,
22    /// Issues is how many upstream issues were seen.
23    #[serde(rename = "issues", skip_serializing_if = "Option::is_none")]
24    pub issues: Option<i32>,
25    /// Repos is how many granted repos were walked (archived/disabled are skipped).
26    #[serde(rename = "repos", skip_serializing_if = "Option::is_none")]
27    pub repos: Option<i32>,
28    /// Truncated is set when the time budget or the issue cap stopped the pass early. Re-run to continue — the mirror is idempotent by ExtRef, so nothing duplicates.
29    #[serde(rename = "truncated", skip_serializing_if = "Option::is_none")]
30    pub truncated: Option<bool>,
31    /// Updated is how many existing native issues this pass refreshed.
32    #[serde(rename = "updated", skip_serializing_if = "Option::is_none")]
33    pub updated: Option<i32>,
34}
35
36impl GithubBackfillResult {
37    pub fn new() -> GithubBackfillResult {
38        GithubBackfillResult {
39            created: None,
40            failed: None,
41            issues: None,
42            repos: None,
43            truncated: None,
44            updated: None,
45        }
46    }
47}
48