skill_embed/action.rs
1/// What install or uninstall did at one destination.
2///
3/// The name it prints comes from the variant, through [`std::fmt::Display`].
4#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, strum::Display)]
5#[strum(serialize_all = "lowercase")]
6pub enum Action {
7 /// The skill was written where nothing was.
8 Installed,
9 /// An existing installation was replaced.
10 Updated,
11 /// The skill directory was deleted.
12 Removed,
13 /// Nothing was done. [`InstallResult::reason`] says why.
14 ///
15 /// [`InstallResult::reason`]: crate::InstallResult::reason
16 Skipped,
17}