hanzo_client/models/open_req.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 OpenReq {
16 /// Base is the branch the work is proposed INTO, by short name. Defaults to the repo's default branch, which is where a proposal goes when nobody says otherwise.
17 #[serde(rename = "base", skip_serializing_if = "Option::is_none")]
18 pub base: Option<String>,
19 /// Body is the longer description. Optional.
20 #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
21 pub body: Option<String>,
22 /// Head is the branch holding the work, by short name (agent/fix-503). Required, and must already exist.
23 #[serde(rename = "head", skip_serializing_if = "Option::is_none")]
24 pub head: Option<String>,
25 /// Name is the repo the proposal belongs to, from the :name path segment.
26 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
27 pub name: Option<String>,
28 /// Title is the one-line summary of what is being proposed. Required.
29 #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
30 pub title: Option<String>,
31}
32
33impl OpenReq {
34 pub fn new() -> OpenReq {
35 OpenReq {
36 base: None,
37 body: None,
38 head: None,
39 name: None,
40 title: None,
41 }
42 }
43}
44