pub struct EditOutcome {Show 13 fields
pub id: String,
pub kind: String,
pub status: String,
pub paragraph: Option<String>,
pub matches: usize,
pub context: Option<String>,
pub comment_id: Option<u32>,
pub anchor_given: Option<String>,
pub anchor_read_as: Option<String>,
pub near: Option<NearMatches>,
pub candidates: Vec<AnchorCandidate>,
pub code: Option<String>,
pub message: Option<String>,
}Expand description
Outcome of one operation.
Fields§
§id: StringOperation id (op-N when the plan gave none).
kind: StringOperation kind.
status: Stringok, failed, or skipped (not reached because an earlier
operation failed the plan).
paragraph: Option<String>Resolved paragraph id.
matches: usizeAnchor occurrences found (1 on success).
context: Option<String>before {old→new} after, {+inserted}, {-deleted}.
comment_id: Option<u32>Comment id written for this operation.
anchor_given: Option<String>The anchor as the plan wrote it, when it matched only without its
Markdown marks, or only as it reads: a space for a non-breaking
one, straight quotes for curly ones, - for a non-breaking hyphen,
zero-width characters left out.
anchor_read_as: Option<String>The paragraph’s text actually matched in that case.
near: Option<NearMatches>Report-only whitespace occurrences when the literal anchor was refused.
candidates: Vec<AnchorCandidate>Paragraphs the anchor does occur in when the named paragraph does not hold it (#1889); empty on every other outcome.
code: Option<String>Error code when failed.
message: Option<String>Error message when failed; on an ok operation, a note that it
could not be shown as asked (a whole replacement kept word-level).
Trait Implementations§
Source§impl Clone for EditOutcome
impl Clone for EditOutcome
Source§fn clone(&self) -> EditOutcome
fn clone(&self) -> EditOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EditOutcome
impl Debug for EditOutcome
Source§impl<'de> Deserialize<'de> for EditOutcome
impl<'de> Deserialize<'de> for EditOutcome
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EditOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EditOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for EditOutcome
Source§impl PartialEq for EditOutcome
impl PartialEq for EditOutcome
Source§impl Serialize for EditOutcome
impl Serialize for EditOutcome
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for EditOutcome
Auto Trait Implementations§
impl Forget for EditOutcome
impl Freeze for EditOutcome
impl Move for EditOutcome
impl RefUnwindSafe for EditOutcome
impl Send for EditOutcome
impl Sync for EditOutcome
impl Unpin for EditOutcome
impl UnsafeUnpin for EditOutcome
impl UnwindSafe for EditOutcome
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.