mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-05 12:41:47 +02:00
22 lines
534 B
Rust
22 lines
534 B
Rust
use clap::ValueEnum;
|
|
|
|
use serde::Deserialize;
|
|
use serde::Serialize;
|
|
use strum::Display;
|
|
use strum::EnumString;
|
|
|
|
#[derive(
|
|
Copy, Clone, Debug, Hash, PartialEq, Eq, Serialize, Deserialize, Display, EnumString, ValueEnum,
|
|
)]
|
|
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
|
|
#[strum(serialize_all = "snake_case")]
|
|
#[serde(rename_all = "snake_case")]
|
|
pub enum AnimationPrefix {
|
|
Movement,
|
|
Transparency,
|
|
}
|
|
|
|
pub fn new_animation_key(prefix: AnimationPrefix, key: String) -> String {
|
|
format!("{prefix}:{key}")
|
|
}
|