pub enum StepKind {
Create,
Write,
Edit,
Delete,
Move,
Read,
Run,
Work,
}Expand description
The kind of work a step does, as its action declares it.
Variants§
Create
It makes something new in the record.
Write
It writes words into the record, at a place in it.
Edit
It changes what the record or one of its items says.
Delete
It takes something away.
Move
It moves something elsewhere.
Read
It only reads.
Run
It runs something: a command, a program, a job.
Work
Its declaration names no kind of work of its own.
Implementations§
Source§impl StepKind
impl StepKind
Sourcepub const fn word(self) -> &'static str
pub const fn word(self) -> &'static str
The word a declaration names it by (#[action(step = "create")]).
Sourcepub const fn did_message(self) -> &'static str
pub const fn did_message(self) -> &'static str
What a step of this kind did, in the past tense, as a catalogue
message: the word beside the characters a write left says what the
person saw happen where the action declares no past-tense form of its
own (ActionType::did).
Sourcepub const fn of_edit(op: EditOp) -> Self
pub const fn of_edit(op: EditOp) -> Self
The kind of step the change op is, as the change itself declares it:
words written, an item added, something removed or moved.
Sourcepub const fn of_anchor(anchor: &InteractionAnchor) -> Option<Self>
pub const fn of_anchor(anchor: &InteractionAnchor) -> Option<Self>
The kind of step an invocation is, from the part of the record it says it acts on: the characters of a text are words written into it, one of its items is that item changed, and the record as a whole names no kind of its own.
Sourcepub fn of_did(what: &Did) -> Option<Self>
pub fn of_did(what: &Did) -> Option<Self>
The kind of step a committed change is, from what it declares: a field
edit’s operation, a verb’s own declaration (CREATE_ACTION makes
something, a command parameter runs something), or a group naming what
its members share. None for a step whose declaration names no kind of
its own.
Trait Implementations§
impl Copy for StepKind
Source§impl<'de> Deserialize<'de> for StepKind
impl<'de> Deserialize<'de> for StepKind
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>,
impl Eq for StepKind
impl StructuralPartialEq for StepKind
Auto Trait Implementations§
impl Forget for StepKind
impl Freeze for StepKind
impl Move for StepKind
impl RefUnwindSafe for StepKind
impl Send for StepKind
impl Sync for StepKind
impl Unpin for StepKind
impl UnsafeUnpin for StepKind
impl UnwindSafe for StepKind
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
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> ⓘ
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