Skip to main content

tapis_workflows/models/
req_non_local_context.rs

1/*
2 * Tapis Workflows API
3 *
4 * Create and manage pipelines
5 *
6 * The version of the OpenAPI document: 1.6.0
7 * Contact: cicsupport@tacc.utexas.edu
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 ReqNonLocalContext {
16    #[serde(rename = "type")]
17    pub r#type: models::EnumContextType,
18    #[serde(rename = "visibility")]
19    pub visibility: models::EnumContextVisibility,
20    #[serde(rename = "url")]
21    pub url: String,
22}
23
24impl ReqNonLocalContext {
25    pub fn new(
26        r#type: models::EnumContextType,
27        visibility: models::EnumContextVisibility,
28        url: String,
29    ) -> ReqNonLocalContext {
30        ReqNonLocalContext {
31            r#type,
32            visibility,
33            url,
34        }
35    }
36}