Skip to main content

Operations

Struct Operations 

Source
pub struct Operations {
Show 26 fields pub compare: bool, pub accept_revisions: bool, pub reject_revisions: bool, pub selective_revisions: bool, pub revision_records: bool, pub pdf: bool, pub png: bool, pub inspect_body: bool, pub markdown: bool, pub edit: bool, pub comments: bool, pub markdown_to_docx: bool, pub markdown_diff: bool, pub patch: bool, pub diff_render: bool, pub page_ranges: bool, pub comment_threads: bool, pub edit_keeps_revisions: bool, pub append: bool, pub content_controls: bool, pub validate: bool, pub repair: bool, pub fields: bool, pub scrub: bool, pub audit: bool, pub edit_skip_failed: bool,
}
Expand description

Per-operation availability in this build. Every operation is compiled unconditionally; features do not gate an operation, so each field is true in the default build. A wrapper that compiles an operation out (for example jubarte-wasm drops pdf and png) overrides the matching field in its own manifest.

Fields§

§compare: bool

Two documents into a Word tracked-changes document (crate::document_comparer::compare_documents).

§accept_revisions: bool§reject_revisions: bool§selective_revisions: bool

List tracked changes by id and accept or reject a selection of them (crate::changes); also the edit-plan resolve_revisions entry.

§revision_records: bool

List revision records.

§pdf: bool

DOCX to PDF (jubarte::convert::docx_to_pdf).

§png: bool

DOCX pages to PNG (jubarte::convert::docx_to_png).

§inspect_body: bool§markdown: bool

Markdown projection with paragraph ids (crate::inspect::markdown).

§edit: bool

Edit plans (clean copy, redline, report; crate::edit::apply_plan).

§comments: bool

Comments authored by an edit plan (comment, reply_comment, resolve_comment, edit_comment, delete_comment).

§markdown_to_docx: bool

Markdown → DOCX, CriticMarkup as tracked changes and comments (crate::markdown::markdown_to_docx).

§markdown_diff: bool

Two Markdown documents as CriticMarkup, or Word / Markdown as a Word redline (crate::markdown::diff_markdown, crate::markdown::redline).

§patch: bool

The changes between two documents, Word or Markdown, as a patch over the changed paragraphs at their ids (crate::markdown::diff_markdown at the patch level; jubarte diff).

§diff_render: bool

Which pages of two documents differ, pixel for pixel, with overlays of the changed region (jubarte::convert::diff_render; jubarte visual-diff).

§page_ranges: bool

Rasterize selected pages after one layout pass of the whole document (convert --pages).

§comment_threads: bool

Comment threads: jubarte comments lists them, and edit plans reply, resolve, edit and delete comments.

§edit_keeps_revisions: bool

Edit plans accept existing_revisions: "keep": another party’s tracked changes stay, and the plan’s edits become new revisions beside them.

§append: bool

One document after another, carrying images, links, styles, lists and notes (jubarte::append::append_documents; jubarte append).

§content_controls: bool

read --json lists the body’s content controls and edit plans fill them (fill_control).

§validate: bool

Word-validity findings and the tracked-edit audit (crate::validate::validate; jubarte validate with --original / --author).

§repair: bool

Repairable findings fixed (crate::validate::repair; jubarte validate --repair).

§fields: bool

Refresh PAGEREF, REF, NUMPAGES, SEQ and TOC results from jubarte’s layout (crate::fields::update_fields; jubarte fields update, the edit-plan update_fields).

§scrub: bool

Remove authors, rsids, document properties and comments (crate::scrub::scrub; jubarte scrub); edit plans take redact.

§audit: bool

Accessibility, style and structure findings by paragraph id (crate::audit::audit_report; jubarte validate --rules a11y,style,structure).

§edit_skip_failed: bool

Edit plans run with --skip-failed (crate::edit::PrepareOptions::skip_failed): the operations that pass are applied, and the failed ones are written as a plan of their own.

Implementations§

Source§

impl Operations

Source

pub fn entries(&self) -> Vec<(&'static str, bool)>

Each operation and whether this build has it, in declaration order (the same order as the field list). Used by capabilities_text.

Trait Implementations§

Source§

impl Clone for Operations

Source§

fn clone(&self) -> Operations

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Operations

Source§

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

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

impl<'de> Deserialize<'de> for Operations

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Operations, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for Operations

Source§

impl PartialEq for Operations

Source§

fn eq(&self, other: &Operations) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Operations

Source§

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

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Operations

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.