pub struct Undo {
pub kind: UndoType,
pub undo_props: UndoProperties,
pub object_props: ObjectProperties,
pub activity_props: ActivityProperties,
}Expand description
Indicates that the actor is undoing the object.
In most cases, the object will be an Activity describing some previously performed action (for instance, a person may have previously “liked” an article but, for whatever reason, might choose to undo that like at some later point in time).
The target and origin typically have no defined meaning.
Fields§
§kind: UndoType§undo_props: UndoPropertiesAdds all valid undo properties to this struct
object_props: ObjectPropertiesAdds all valid object properties to this struct
activity_props: ActivityPropertiesAdds all valid activity properties to this struct
Trait Implementations§
Source§impl ActivityExt for Undo
impl ActivityExt for Undo
fn props(&self) -> &ActivityProperties
fn props_mut(&mut self) -> &mut ActivityProperties
Source§impl<'de> Deserialize<'de> for Undo
impl<'de> Deserialize<'de> for Undo
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 ObjectExt for Undo
impl ObjectExt for Undo
fn props(&self) -> &ObjectProperties
fn props_mut(&mut self) -> &mut ObjectProperties
impl Activity for Undo
impl Object for Undo
Auto Trait Implementations§
impl Freeze for Undo
impl RefUnwindSafe for Undo
impl Send for Undo
impl Sync for Undo
impl Unpin for Undo
impl UnwindSafe for Undo
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