pub struct InteractionAction {
pub id: String,
pub label: String,
pub app: Option<ActionApp>,
pub step: Option<StepKind>,
pub creates: Option<String>,
pub did: Option<String>,
}Expand description
Action identity and human label from the application’s current catalogue.
Fields§
§id: String§label: String§app: Option<ActionApp>§step: Option<StepKind>The kind of step the action declares it takes
(StepKind), so a surface says it in the reader’s
language instead of reading it off the label’s English words. Absent
for an action whose declaration names none, whose step reads as the
part of the record it acts on.
creates: Option<String>The collection of its resource the action adds to, when it declares one
(writes = issues): what a create makes, named by that collection’s
own noun in the reader’s language
(ActionContract::creates).
did: Option<String>What the action did, in the app’s own words, said after who did it
(“renamed”, “replaced”): the past-tense form its app declares
(ActionType::did), so a surface says what
happened where the action’s menu label only names the place it acts
on. Absent where the app declares none; a surface then says the kind
of step that was taken.
Trait Implementations§
Source§impl Clone for InteractionAction
impl Clone for InteractionAction
Source§impl Debug for InteractionAction
impl Debug for InteractionAction
Source§impl<'de> Deserialize<'de> for InteractionAction
impl<'de> Deserialize<'de> for InteractionAction
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 InteractionAction
Source§impl PartialEq for InteractionAction
impl PartialEq for InteractionAction
Source§impl Serialize for InteractionAction
impl Serialize for InteractionAction
impl StructuralPartialEq for InteractionAction
Auto Trait Implementations§
impl Forget for InteractionAction
impl Freeze for InteractionAction
impl Move for InteractionAction
impl RefUnwindSafe for InteractionAction
impl Send for InteractionAction
impl Sync for InteractionAction
impl Unpin for InteractionAction
impl UnsafeUnpin for InteractionAction
impl UnwindSafe for InteractionAction
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