pub struct TemplateView {
pub category: Option<String>,
pub counsel_review: Option<bool>,
pub fields: Option<Vec<Field>>,
pub id: Option<String>,
pub origin: Option<String>,
pub title: Option<String>,
pub version: Option<i32>,
}Fields§
§category: Option<String>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.
counsel_review: Option<bool>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.
fields: Option<Vec<Field>>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.
id: Option<String>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.
origin: Option<String>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.
title: Option<String>Title is the display name, e.g. "Mutual Non-Disclosure Agreement". A generated document inherits it.
version: Option<i32>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.
Implementations§
Source§impl TemplateView
impl TemplateView
pub fn new() -> TemplateView
Trait Implementations§
Source§impl Clone for TemplateView
impl Clone for TemplateView
Source§fn clone(&self) -> TemplateView
fn clone(&self) -> TemplateView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more