hanzo_client/models/template_view.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 TemplateView {
16 /// Category is the corporate need the template serves: formation, equity, ops or sales. Formation and equity are the securities-class categories, which is what forces counselReview.
17 #[serde(rename = "category", skip_serializing_if = "Option::is_none")]
18 pub category: Option<String>,
19 /// CounselReview marks a template whose rendered documents open with the counsel notice. True for every formation and equity template whatever an override sends: the engine prepends the notice and no caller can suppress it.
20 #[serde(rename = "counselReview", skip_serializing_if = "Option::is_none")]
21 pub counsel_review: Option<bool>,
22 /// Fields declares the merge fields the body consumes — every key a generation must supply, each with its human label. All are REQUIRED: a missing one is refused rather than rendered as a blank into a contract.
23 #[serde(rename = "fields", skip_serializing_if = "Option::is_none")]
24 pub fields: Option<Vec<models::Field>>,
25 /// ID is the template's stable id and the path segment that fetches its body — \"nda\", \"msa\", \"safe\". An override keeps the built-in's id.
26 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
27 pub id: Option<String>,
28 /// Origin is \"builtin\" for a template the platform ships or \"org\" for one this org saved. It separates the catalog every tenant sees from this tenant's own.
29 #[serde(rename = "origin", skip_serializing_if = "Option::is_none")]
30 pub origin: Option<String>,
31 /// Title is the display name, e.g. \"Mutual Non-Disclosure Agreement\". A generated document inherits it.
32 #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
33 pub title: Option<String>,
34 /// Version is which version of this template the caller's org resolves to. A built-in is version 1; the org's first override is 2 and each save increments, so an override version never collides with the built-in's.
35 #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
36 pub version: Option<i32>,
37}
38
39impl TemplateView {
40 pub fn new() -> TemplateView {
41 TemplateView {
42 category: None,
43 counsel_review: None,
44 fields: None,
45 id: None,
46 origin: None,
47 title: None,
48 version: None,
49 }
50 }
51}
52