📝 docs(retention): add documentation for the retention struct

- add documentation for the `new` function
This commit is contained in:
Jeremiah Russell
2025-10-08 07:53:35 +01:00
committed by Jeremiah Russell
parent 19513f51a9
commit 92e88c4261

View File

@@ -19,7 +19,8 @@ impl Default for Retention {
}
impl Retention {
pub(crate) fn new(age: MessageAge, generate_label: bool) -> Self {
/// Create a new retention struct
pub fn new(age: MessageAge, generate_label: bool) -> Self {
Retention {
age,
generate_label,