♻️ refactor(config): make EolRule fields public
- make EolRule fields public for external access
This commit is contained in:
committed by
Jeremiah Russell
parent
3628f6a291
commit
adc50f63a2
@@ -6,7 +6,7 @@ use crate::{Retention, eol_cmd::EolAction};
|
|||||||
|
|
||||||
/// End of life rules
|
/// End of life rules
|
||||||
#[derive(Debug, Serialize, Deserialize, Default, Clone)]
|
#[derive(Debug, Serialize, Deserialize, Default, Clone)]
|
||||||
pub(crate) struct EolRule {
|
pub struct EolRule {
|
||||||
id: usize,
|
id: usize,
|
||||||
retention: String,
|
retention: String,
|
||||||
labels: BTreeSet<String>,
|
labels: BTreeSet<String>,
|
||||||
@@ -88,7 +88,7 @@ impl EolRule {
|
|||||||
self.id
|
self.id
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn labels(&self) -> Vec<String> {
|
pub fn labels(&self) -> Vec<String> {
|
||||||
self.labels.iter().map(|i| i.to_string()).collect()
|
self.labels.iter().map(|i| i.to_string()).collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user