pub struct PrepareOptions {
pub require_change: bool,
pub exact_text: bool,
pub role: PrimaryRole,
pub syntax: PlanSyntax,
pub skip_failed: bool,
}Expand description
What to check beyond the shared candidate checks.
Fields§
§require_change: boolRefuse NO_CHANGES_REQUESTED after the checks pass when the primary
has no document effect. Renders, reports and other derivatives are
not consulted: the condition judges the primary only.
exact_text: boolCompare each rewrite’s requested text with the realized paragraph
exactly: a request the word-level rewrite algorithm normalizes away
is POSTCONDITION_FAILED, not an unchanged success. The v1 rewrite
contract documents that normalization, so it stays off there; the v2
exact-text codec sets it.
role: PrimaryRoleWhich serialized candidate prepare chooses as the publication.
Clean (the default) keeps the helper-callers’ contract, where the
clean copy is the primary and the redline is a side artifact.
Redline makes the redline the primary: the chosen bytes the
serialized-story postcondition describes and the receipt digest
names, so a redline-only defect cannot slip through.
syntax: PlanSyntaxThe request syntax a refusal hint quotes: a flags-built plan names flags, a JSON plan names JSON (#1108).
skip_failed: bool--skip-failed (#1253): leave out every operation that fails, and
every operation of its group, instead of refusing the plan; the
rest is applied as a plan of its own. PreparedEdit::skipped
lists what was left out. A failure no operation is blamed for is
never skipped, and a plan whose every operation fails is refused.
Trait Implementations§
Source§impl Clone for PrepareOptions
impl Clone for PrepareOptions
Source§fn clone(&self) -> PrepareOptions
fn clone(&self) -> PrepareOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PrepareOptions
Source§impl Debug for PrepareOptions
impl Debug for PrepareOptions
Source§impl Default for PrepareOptions
impl Default for PrepareOptions
Source§fn default() -> PrepareOptions
fn default() -> PrepareOptions
impl Eq for PrepareOptions
Source§impl PartialEq for PrepareOptions
impl PartialEq for PrepareOptions
impl StructuralPartialEq for PrepareOptions
Auto Trait Implementations§
impl Forget for PrepareOptions
impl Freeze for PrepareOptions
impl Move for PrepareOptions
impl RefUnwindSafe for PrepareOptions
impl Send for PrepareOptions
impl Sync for PrepareOptions
impl Unpin for PrepareOptions
impl UnsafeUnpin for PrepareOptions
impl UnwindSafe for PrepareOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.