pub enum CorrectionReport {
UnknownEntity {
query: String,
candidates: Vec<EntityMatch>,
},
NoSuchEdge {
from: String,
to: String,
rel_type: String,
existing: Vec<EdgeView>,
},
Ambiguous {
entity: String,
edges: Vec<EdgeView>,
},
NothingToCorrect {
entity: String,
},
Contradicted {
edges: Vec<EdgeCorrection>,
},
Planned {
removal: Removal,
},
Removed {
removal: Removal,
},
}Expand description
The result of one correction request.
Every outcome that changed nothing says why, and says it with enough detail for the caller to make a better request — because the alternative to refusing is damaging the wrong memory.
Variants§
UnknownEntity
The name matched no entity. candidates are the closest stored names.
NoSuchEdge
Both entities exist but no live edge of that type joins them.
existing is what does join them.
Ambiguous
The entity takes part in several claims; which one is wrong is the caller’s to say.
NothingToCorrect
The entity exists and is not connected to anything, so there is no claim to contradict.
Contradicted
Contradicting evidence was recorded.
Fields
§
edges: Vec<EdgeCorrection>Planned
What an unconfirmed forget would remove. Nothing was removed.
Removed
What a confirmed forget removed.
Implementations§
Trait Implementations§
Source§impl Clone for CorrectionReport
impl Clone for CorrectionReport
Source§fn clone(&self) -> CorrectionReport
fn clone(&self) -> CorrectionReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CorrectionReport
impl Debug for CorrectionReport
Source§impl<'de> Deserialize<'de> for CorrectionReport
impl<'de> Deserialize<'de> for CorrectionReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CorrectionReport
impl PartialEq for CorrectionReport
Source§impl Serialize for CorrectionReport
impl Serialize for CorrectionReport
impl StructuralPartialEq for CorrectionReport
Auto Trait Implementations§
impl Freeze for CorrectionReport
impl RefUnwindSafe for CorrectionReport
impl Send for CorrectionReport
impl Sync for CorrectionReport
impl Unpin for CorrectionReport
impl UnsafeUnpin for CorrectionReport
impl UnwindSafe for CorrectionReport
Blanket Implementations§
impl<T> AsyncFriendly for T
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
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request