#[derive(Debug, Clone)]
pub struct CustomAttributeDiff {
pub name: String,
pub op: CustomAttributeOp,
}
#[derive(Debug, Clone)]
pub enum CustomAttributeOp {
UnregisteredInGit,
PresentInGitOnly,
DeprecationToggled {
from: bool,
to: bool,
},
MetadataOnly,
Unchanged,
}
impl CustomAttributeDiff {
pub fn has_changes(&self) -> bool {
!matches!(self.op, CustomAttributeOp::Unchanged)
}
}