pub enum ContractsCommand {
List {
profile: Option<String>,
},
Show {
table: String,
profile: Option<String>,
},
Queue {
profile: Option<String>,
limit: Option<usize>,
},
Remember {
table: String,
kind: ClaimKindArg,
value: String,
column: Option<String>,
reason: Option<String>,
profile: Option<String>,
},
Review {
claim_id: String,
confirm: bool,
reject: bool,
},
Decide {
prefix: String,
decision: ReviewDecisionArg,
profile: Option<String>,
},
Forget {
claim_id: String,
reason: ForgetReasonArg,
},
}Variants§
List
Show
Queue
Fields
Remember
Fields
kind: ClaimKindArgreason: Option<String>Why the directive claim holds — a sentence the model reads alongside
the value so a claim that contradicts a plausible schema reading
(use return_date, not rental_date) loses less often. Forwarded to
the directive kinds only (grain, time-column, column-role); ignored
for description/alias. Optional: a claim with no reason is the default.
Review
Decide
Act on a claim from the turn that just showed it, by a short stored
claim-id prefix (the ki-xxxx contracts list abbreviates to), not a
64-character id. Spec D. The prefix is resolved against the resolved
profile’s claims to exactly one claim, or refused; the decision then
reaches the existing confirm/reject/use_candidate_once operations
— it is not a second implementation of them.
Fields
prefix: StringA leading prefix of a stored claim id. Unambiguous-or-refused: zero matches or more than one is a typed error that changes nothing.
decision: ReviewDecisionArgForget
Trait Implementations§
Source§impl Clone for ContractsCommand
impl Clone for ContractsCommand
Source§fn clone(&self) -> ContractsCommand
fn clone(&self) -> ContractsCommand
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 ContractsCommand
impl Debug for ContractsCommand
impl Eq for ContractsCommand
Source§impl FromArgMatches for ContractsCommand
impl FromArgMatches for ContractsCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl PartialEq for ContractsCommand
impl PartialEq for ContractsCommand
impl StructuralPartialEq for ContractsCommand
Source§impl Subcommand for ContractsCommand
impl Subcommand for ContractsCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for ContractsCommand
impl RefUnwindSafe for ContractsCommand
impl Send for ContractsCommand
impl Sync for ContractsCommand
impl Unpin for ContractsCommand
impl UnsafeUnpin for ContractsCommand
impl UnwindSafe for ContractsCommand
Blanket Implementations§
impl<T> Allocation 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
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,
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.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> ⓘ
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> ⓘ
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 more