pub struct CaseCandidate {
pub key: CaseKey,
pub label: String,
pub confirm_every_write: bool,
pub subject_only_when_named: bool,
}Expand description
One case the actor may address in a conversation.
It carries no revision: the executor is read at the start of every turn, so a turn never plans against a state that has moved (I1, I13).
Fields§
§key: CaseKeyWorkflow and case identifier.
label: StringServer-authored label the model and the cards see instead of the id.
confirm_every_write: boolEvery write on this case needs a click, as AskBeforeApplying would ask.
For a record the actor may reach and did not necessarily mean. It raises a confirmation and never refuses.
subject_only_when_named: boolThe case is in view only because the actor may reach it.
It stays addressable, and becomes a subject only when an act names it: it does
not hold the door against a new case, brief the writer or ask for its fields.
See ReductionContext::subject_only_when_named.
Implementations§
Source§impl CaseCandidate
impl CaseCandidate
Sourcepub const fn confirming_every_write(self) -> Self
pub const fn confirming_every_write(self) -> Self
Declares that every write on this case has to pass through a click.
Sourcepub const fn subject_only_when_named(self) -> Self
pub const fn subject_only_when_named(self) -> Self
Declares that this case is a subject of a turn only when the turn names it.
Trait Implementations§
Source§impl Clone for CaseCandidate
impl Clone for CaseCandidate
Source§impl Debug for CaseCandidate
impl Debug for CaseCandidate
impl Eq for CaseCandidate
Source§impl PartialEq for CaseCandidate
impl PartialEq for CaseCandidate
impl StructuralPartialEq for CaseCandidate
Auto Trait Implementations§
impl Freeze for CaseCandidate
impl RefUnwindSafe for CaseCandidate
impl Send for CaseCandidate
impl Sync for CaseCandidate
impl Unpin for CaseCandidate
impl UnsafeUnpin for CaseCandidate
impl UnwindSafe for CaseCandidate
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
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.