use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub(crate) enum ActivationState {
Global,
Project,
Auto,
Disabled,
}
impl ActivationState {
pub fn is_active(&self) -> bool {
matches!(self, Self::Global | Self::Project)
}
}