pub struct Choice<'a> {
pub task: Option<&'a str>,
pub call: Option<&'a str>,
pub all: bool,
pub approve: bool,
pub scope: Scope,
pub note: Option<&'a str>,
pub reason: Option<&'a str>,
pub digest: Option<&'a str>,
}Expand description
Which waiting calls to decide, and how (approve/reject options).
Fields§
§task: Option<&'a str>The task’s calls (--task); all of the feature’s with --all alone.
call: Option<&'a str>One call by its id or a prefix of it (--call).
all: boolEvery matching call (--all), each decided and recorded on its own.
approve: boolApprove, or reject.
scope: ScopeHow far an approval reaches (--scope, default task).
note: Option<&'a str>An approval’s note to the model.
reason: Option<&'a str>A rejection’s reason, which the model is told.
digest: Option<&'a str>The digest of the call the person was shown
(speccoder_core::PendingCall::digest): refused when the call
that waits now has another. None from the command line, which
names the call itself.
Implementations§
Trait Implementations§
impl<'a> Copy for Choice<'a>
impl<'a> Eq for Choice<'a>
impl<'a> StructuralPartialEq for Choice<'a>
Auto Trait Implementations§
impl<'a> Forget for Choice<'a>
impl<'a> Freeze for Choice<'a>
impl<'a> RefUnwindSafe for Choice<'a>
impl<'a> Send for Choice<'a>
impl<'a> Sync for Choice<'a>
impl<'a> Unpin for Choice<'a>
impl<'a> UnsafeUnpin for Choice<'a>
impl<'a> UnwindSafe for Choice<'a>
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,
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.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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.
Creates a shared type from an unshared type.