Skip to main content

TemplateOptions

Struct TemplateOptions 

Source
pub struct TemplateOptions {
Show 24 fields pub file: PathBuf, pub output: Option<PathBuf>, pub select: Option<String>, pub story: String, pub find: Option<String>, pub regex: Option<String>, pub ignore_case: bool, pub changed: bool, pub by: Vec<String>, pub context: usize, pub accept_change: Vec<String>, pub reject_change: Vec<String>, pub author: String, pub datetime: Option<String>, pub track: String, pub existing_revisions: String, pub keep_others: bool, pub expect_sha256: Option<String>, pub dry_run: bool, pub report: Option<PathBuf>, pub force: bool, pub json: bool, pub jsonl: bool, pub refresh_plan: Option<PathBuf>,
}
Expand description

Generate unchanged desired-text rows; deliberately author edits before apply.

Fields§

§file: PathBuf

Original DOCX. Generation never modifies it.

§output: Option<PathBuf>

Complete PlanV2 JSON; explicit - writes only the raw plan to stdout.

§select: Option<String>

Printed paragraph/container IDs or closed ranges, frozen on source S.

§story: String

body, a printed story ID, or all (default: all).

§find: Option<String>

Literal search of original-source final logical text.

§regex: Option<String>

Explicit regex search of original-source final logical text.

§ignore_case: bool

Search only; editing remains exact.

§changed: bool

Blocks intersecting original revisions/comments.

§by: Vec<String>

Existing-mark author filter; repeat for a union of authors. Requires –changed.

§context: usize

Read-only original-source neighbours; never additional editing scope.

§accept_change: Vec<String>

Original revision ID to accept in the saved plan; repeatable.

§reject_change: Vec<String>

Original revision ID to reject in the saved plan; repeatable.

§author: String

Author for later revisions/comments.

§datetime: Option<String>

Frozen timestamp; default current UTC.

§track: String

Track new edits when the plan is applied.

§existing_revisions: String

Remaining history after the explicitly selected decisions.

§keep_others: bool

Refuse to accept or reject another author’s tracked change, and to delete, resolve, reopen or reword their comment. Restore, strike, a comment and a reply stay allowed. JUBARTE_KEEP_OTHERS=1 sets the same guard. Another author is anyone other than –author (Jubarte when –author is left out). The generated plan carries "others": "keep".

§expect_sha256: Option<String>

Require these exact source bytes.

§dry_run: bool

Report coverage and readiness; write no files. No -o required.

§report: Option<PathBuf>

Explicit receipt path (not another plan); not written during dry-run.

§force: bool

Replace only an explicitly named existing output; never an input alias.

§json: bool

One compact result envelope; conflicts with -o -.

§jsonl: bool

Result records ending in a terminal result; never a plan encoding.

§refresh_plan: Option<PathBuf>

Refresh this plan: write it back whole (every operation, scope, decisions, the others guard, attribution), with each rewrite of the generated rows taking a fresh before_sha256 from the source. The plan must be bound to this source.

Trait Implementations§

Source§

impl Args for TemplateOptions

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

impl Debug for TemplateOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for TemplateOptions

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Serialize for TemplateOptions

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.