Skip to main content

DeliveryOptions

Struct DeliveryOptions 

Source
pub struct DeliveryOptions {
Show 13 fields pub in_place: bool, pub output: Option<PathBuf>, pub out_dir: Option<PathBuf>, pub report: Option<PathBuf>, pub emit: Vec<String>, pub expect: Option<PathBuf>, pub expect_sha256: Option<String>, pub dry_run: bool, pub require_change: bool, pub force: bool, pub keep_others: bool, pub json: bool, pub jsonl: bool,
}
Expand description

Publication and preparation options; never serialized into a saved plan.

Fields§

§in_place: bool

Replace FILE through the same atomic write as -o. A refused edit leaves FILE unchanged. Not with -o or –out-dir.

§output: Option<PathBuf>

Primary edited DOCX; required unless saving, bundling, replacing FILE or dry-running.

§out_dir: Option<PathBuf>

Publish a new bundle directory (document.docx, changes.diff, report.json).

§report: Option<PathBuf>

JSON receipt, irrespective of filename suffix.

§emit: Vec<String>

Bundle roles: document,patch,report (primary document always included).

§expect: Option<PathBuf>

Optional expectation contract, evaluated on the prepared primary before publication (PlanV2 requests only; use jubarte check for a standalone pass over a published output).

§expect_sha256: Option<String>

Redundant source digest must agree with a plan’s embedded digest.

§dry_run: bool

Prepare and validate the actual candidate; write no files.

§require_change: bool

Require a primary document change, independently of derived artifacts.

§force: bool

Replace an explicitly named existing output; never overwrite an input.

§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).

§json: bool

One result envelope, including empty results and refusals.

§jsonl: bool

Header and exactly one terminal result.

Trait Implementations§

Source§

impl Args for DeliveryOptions

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 DeliveryOptions

Source§

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

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

impl FromArgMatches for DeliveryOptions

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 DeliveryOptions

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.