pub struct RedlineOptions<'a> {
pub settings: WmlComparerSettings,
pub reference: Option<&'a [u8]>,
pub critic: bool,
pub images: Option<&'a dyn Fn(&str) -> Option<Vec<u8>>>,
}Expand description
How redline reads and compares two Source documents.
Defaults: WmlComparerSettings::default (author
"Open-Xml-PowerTools"; the CLI passes Jubarte and the Python and
WebAssembly bindings their own Redline,
DATE "1970-01-01T00:00:00Z" for reproducible output, Word’s own
detail threshold); no reference document, no CriticMarkup recognition,
no image loader.
Fields§
§settings: WmlComparerSettingsThe comparer’s settings: author, date, detail threshold, mode,
move detection, format-change detection, the input budget for
crate::admission. See crate::comparer::WmlComparerSettings.
reference: Option<&'a [u8]>Styles, page setup, headers and footers when both sides are
Markdown; built-in styles when None. Against a Word document the
Markdown is applied to that document instead, so this only affects
the Markdown / Markdown case.
critic: boolRead CriticMarkup in a Markdown side as tracked changes and comments. Off by default: a Markdown document being compared is treated as plain text.
images: Option<&'a dyn Fn(&str) -> Option<Vec<u8>>>The bytes of each image a Markdown side names; None writes every
image as its alt text.
Trait Implementations§
Source§impl<'a> Clone for RedlineOptions<'a>
impl<'a> Clone for RedlineOptions<'a>
Source§fn clone(&self) -> RedlineOptions<'a>
fn clone(&self) -> RedlineOptions<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more