gitbundle_sdk/models/
jobs_context.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.3.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct JobsContext {
17    #[serde(rename = "outputs")]
18    pub outputs: std::collections::HashMap<String, String>,
19    #[serde(rename = "result")]
20    pub result: models::StatusContext,
21}
22
23impl JobsContext {
24    pub fn new(
25        outputs: std::collections::HashMap<String, String>,
26        result: models::StatusContext,
27    ) -> JobsContext {
28        JobsContext { outputs, result }
29    }
30}