pub struct EditError {
pub code: String,
pub operation: Option<String>,
pub message: String,
pub outcomes: Vec<EditOutcome>,
pub near: Option<Box<NearMatches>>,
pub revision_refusals: Box<[RevisionRefusal]>,
}Expand description
Why a plan was refused. outcomes lists every operation’s status so the
caller can see which anchors resolved before the failure.
Fields§
§code: StringStable error code (STALE_SOURCE, AMBIGUOUS_ANCHOR, …).
operation: Option<String>Operation id that failed, when one did.
message: StringHuman-readable detail.
outcomes: Vec<EditOutcome>Status of every operation at the time of failure.
near: Option<Box<NearMatches>>Report-only whitespace occurrences; never used to resolve an operation.
revision_refusals: Box<[RevisionRefusal]>Blocking revision identities and both review choices, when applicable.
Implementations§
Source§impl EditError
impl EditError
Sourcepub fn with_revision_syntax(self, syntax: RevisionSyntax) -> EditError
pub fn with_revision_syntax(self, syntax: RevisionSyntax) -> EditError
Render all revision refusals, including operation outcomes, for a caller.
Sourcepub fn revision_next_actions(
&self,
source_path: &str,
source_digest: &str,
) -> Vec<NextAction>
pub fn revision_next_actions( &self, source_path: &str, source_digest: &str, ) -> Vec<NextAction>
Two explicit decisions as executable template-generation argument arrays. The templates go to stdout; source documents are never changed here.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EditError
impl<'de> Deserialize<'de> for EditError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EditError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EditError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EditError
Source§impl Error for EditError
impl Error for EditError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Serialize for EditError
impl Serialize for EditError
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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EditError
Auto Trait Implementations§
impl Forget for EditError
impl Freeze for EditError
impl Move for EditError
impl RefUnwindSafe for EditError
impl Send for EditError
impl Sync for EditError
impl Unpin for EditError
impl UnsafeUnpin for EditError
impl UnwindSafe for EditError
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.