pub struct CorrectOptions {
pub subject: String,
pub rel_type: Option<String>,
pub object: Option<String>,
pub wrong: bool,
pub forget: bool,
pub all_edges: bool,
pub yes: bool,
}Expand description
One graph correct invocation, as the flags were given.
A struct rather than seven positional arguments, and unvalidated on purpose:
turning it into a CorrectTarget and a Correction is where the
contradictory combinations are named and refused.
Fields§
§subject: StringEntity name, or the source entity of a relationship.
rel_type: Option<String>Relationship type — only for a relationship target.
object: Option<String>Target entity — only for a relationship target.
wrong: boolRecord contradicting evidence at user authority.
forget: boolRemove outright.
all_edges: boolContradict every relationship of an entity rather than being asked which.
yes: boolSkip the confirmation a removal otherwise requires.
Trait Implementations§
Source§impl Clone for CorrectOptions
impl Clone for CorrectOptions
Source§fn clone(&self) -> CorrectOptions
fn clone(&self) -> CorrectOptions
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 moreAuto Trait Implementations§
impl Freeze for CorrectOptions
impl RefUnwindSafe for CorrectOptions
impl Send for CorrectOptions
impl Sync for CorrectOptions
impl Unpin for CorrectOptions
impl UnsafeUnpin for CorrectOptions
impl UnwindSafe for CorrectOptions
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,
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