pub struct ContractNewArgs {Show 24 fields
pub kind: String,
pub as: Option<String>,
pub client: String,
pub title: Option<String>,
pub effective: Option<String>,
pub end: Option<String>,
pub term_months: Option<i64>,
pub term_years: Option<i64>,
pub governing_law: Option<String>,
pub venue: Option<String>,
pub fee: Option<String>,
pub fee_schedule: Option<String>,
pub mutuality: Option<String>,
pub disclosing_side: Option<String>,
pub purpose: Option<String>,
pub deliverables: Vec<String>,
pub ip_assignment: Option<String>,
pub termination_notice_days: Option<i64>,
pub terms: Vec<String>,
pub pack: Option<String>,
pub include: Vec<String>,
pub exclude: Vec<String>,
pub notes: Option<String>,
pub template: Option<String>,
}Fields§
§kind: StringContract kind: nda | consulting | msa | sow | service
as: Option<String>Issuer slug (your side)
client: StringClient slug (counterparty)
title: Option<String>Title — defaults to a sensible per-kind label
effective: Option<String>Effective date (YYYY-MM-DD; defaults to today)
end: Option<String>Explicit end date (YYYY-MM-DD). Mutually exclusive with –term-months.
term_months: Option<i64>Term length in months. Mutually exclusive with –end.
term_years: Option<i64>Term length in years (sugar for –term-months N*12)
governing_law: Option<String>Governing law (e.g. “Singapore”, “England and Wales”, “Delaware”)
venue: Option<String>Court venue (e.g. “Courts of Singapore”)
fee: Option<String>Fee spec for consulting / msa / sow / service. Formats: “fixed:8400:SGD” | “hourly:200:SGD” | “daily:1500:SGD” | “retainer:5000:SGD/month”.
fee_schedule: Option<String>Payment schedule: on-completion | monthly | on-milestone | upon-invoice
mutuality: Option<String>NDA: unilateral | mutual (default mutual)
disclosing_side: Option<String>NDA: disclosing side — us | them | both (default both for mutual)
purpose: Option<String>NDA / consulting: purpose / scope summary
deliverables: Vec<String>Consulting: deliverable lines (repeat). e.g. –deliverable “Discovery”
ip_assignment: Option<String>Consulting: who owns work-product IP (client | consultant | shared)
termination_notice_days: Option<i64>Days of notice required for termination for convenience
terms: Vec<String>Set an arbitrary term key used by the clause pack’s {{vars}}, e.g. –term principal_text=‘£10,000 (ten thousand pounds)’ (repeat)
pack: Option<String>Pack slug (default = “standard”). Picks a different clause library.
include: Vec<String>Append a clause slug from the pack that isn’t included by default
exclude: Vec<String>Remove a clause slug that the pack would include by default
notes: Option<String>Free-form notes (not rendered on the contract body, kept for reference)
template: Option<String>Override the rendered template (else config default)
Trait Implementations§
Source§impl Args for ContractNewArgs
impl Args for ContractNewArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for ContractNewArgs
impl Clone for ContractNewArgs
Source§fn clone(&self) -> ContractNewArgs
fn clone(&self) -> ContractNewArgs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContractNewArgs
impl Debug for ContractNewArgs
Source§impl FromArgMatches for ContractNewArgs
impl FromArgMatches for ContractNewArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ContractNewArgs
impl RefUnwindSafe for ContractNewArgs
impl Send for ContractNewArgs
impl Sync for ContractNewArgs
impl Unpin for ContractNewArgs
impl UnsafeUnpin for ContractNewArgs
impl UnwindSafe for ContractNewArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);