pub struct ActionEffect {
pub app: String,
pub kind: String,
pub verb: String,
}Expand description
One step an action takes on a record other than the resource it is declared on: the app whose record it writes, the record’s kind, and the verb it runs there. A step that is an action a device’s provider offers names that provider as its app and the resource it offers the action on as its kind.
Fields§
§app: String§kind: String§verb: StringImplementations§
Source§impl ActionEffect
impl ActionEffect
Sourcepub const UNDO: &'static str = "undo"
pub const UNDO: &'static str = "undo"
The verb of an undo declared as a step (Self::undo).
Sourcepub fn undo(app: impl Into<String>) -> Self
pub fn undo(app: impl Into<String>) -> Self
Taking back changes of the records app keeps, whichever kinds the changes wrote: an undo
declared as an action’s step, which a reader admits as it admits any declared step.
Sourcepub fn undoes_in(&self, app: &str) -> bool
pub fn undoes_in(&self, app: &str) -> bool
Whether this is the undo of app’s records (Self::undo).
Trait Implementations§
Source§impl Clone for ActionEffect
impl Clone for ActionEffect
Source§impl Debug for ActionEffect
impl Debug for ActionEffect
Source§impl<'de> Deserialize<'de> for ActionEffect
impl<'de> Deserialize<'de> for ActionEffect
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ActionEffect
impl Display for ActionEffect
impl Eq for ActionEffect
Source§impl Hash for ActionEffect
impl Hash for ActionEffect
Source§impl PartialEq for ActionEffect
impl PartialEq for ActionEffect
Source§impl Serialize for ActionEffect
impl Serialize for ActionEffect
impl StructuralPartialEq for ActionEffect
Auto Trait Implementations§
impl Forget for ActionEffect
impl Freeze for ActionEffect
impl Move for ActionEffect
impl RefUnwindSafe for ActionEffect
impl Send for ActionEffect
impl Sync for ActionEffect
impl Unpin for ActionEffect
impl UnsafeUnpin for ActionEffect
impl UnwindSafe for ActionEffect
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
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> ⓘ
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 more