Skip to main content

ForEditRequest

Struct ForEditRequest 

Source
pub struct ForEditRequest {
Show 20 fields pub select: Option<String>, pub story: Option<String>, pub head: Option<usize>, pub tail: Option<usize>, pub find: Option<String>, pub regex: Option<String>, pub ignore_case: bool, pub changed: bool, pub by: Option<String>, pub by_any: Vec<String>, pub context: usize, pub limit: Option<usize>, pub max_chars: Option<usize>, pub all: bool, pub cursor: Option<String>, pub accept: Vec<String>, pub reject: Vec<String>, pub existing_revisions: ExistingRevisions, pub track: bool, pub closed_ranges_only: bool,
}
Expand description

The working-basis inputs read --for-edit shares with template and apply: the same settlement produces the same W.

Fields§

§select: Option<String>

Printed IDs or closed ranges (p5, p4-p7, t0), resolved on S.

§story: Option<String>

Original story ID, or all (the default).

§head: Option<usize>

First N body paragraphs.

§tail: Option<usize>

Last N body paragraphs.

§find: Option<String>

Literal search on S’s final logical text.

§regex: Option<String>

Regex search on S’s final logical text (conflicts with find).

§ignore_case: bool

Case-insensitive search.

§changed: bool

Blocks intersecting a revision or comment of S.

§by: Option<String>

--changed author filter (a handle or full name).

§by_any: Vec<String>

Additional author filters, unioned with by for original marks.

§context: usize

Read-only original-S neighbours around matches.

§limit: Option<usize>

Primary records per page (default 100); ignored under all.

§max_chars: Option<usize>

Character budget across all emitted text (default 24000); ignored under all.

§all: bool

Disable presentation limits.

§cursor: Option<String>

Continuation cursor of an earlier bounded query.

§accept: Vec<String>

Selected revisions to accept in the working view (S ids).

§reject: Vec<String>

Selected revisions to reject in the working view (S ids).

§existing_revisions: ExistingRevisions

Remaining-revision policy; default keep, matching new plans.

§track: bool

Readiness for tracked new edits (default) or direct ones.

§closed_ranges_only: bool

edit template (and other plan surfaces) allow only closed ranges (proposal §2); read --for-edit keeps the open-ended p17- / -p3 spellings its shipped help documents, transitionally.

Trait Implementations§

Source§

impl Clone for ForEditRequest

Source§

fn clone(&self) -> ForEditRequest

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 ForEditRequest

Source§

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

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

impl Default for ForEditRequest

Source§

fn default() -> ForEditRequest

Returns the “default value” for a type. Read more
Source§

impl Eq for ForEditRequest

Source§

impl PartialEq for ForEditRequest

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ForEditRequest

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