♻️ refactor(config): make EolRule fields public

- make EolRule fields public for external access
This commit is contained in:
Jeremiah Russell
2025-10-09 08:13:41 +01:00
committed by Jeremiah Russell
parent 3628f6a291
commit adc50f63a2

View File

@@ -6,7 +6,7 @@ use crate::{Retention, eol_cmd::EolAction};
/// End of life rules
#[derive(Debug, Serialize, Deserialize, Default, Clone)]
pub(crate) struct EolRule {
pub struct EolRule {
id: usize,
retention: String,
labels: BTreeSet<String>,
@@ -88,7 +88,7 @@ impl EolRule {
self.id
}
pub(crate) fn labels(&self) -> Vec<String> {
pub fn labels(&self) -> Vec<String> {
self.labels.iter().map(|i| i.to_string()).collect()
}