pub struct PruneOptions {
pub older_than: Option<DateTime<Utc>>,
pub max_size: Option<u64>,
pub dry_run: bool,
}Expand description
Options controlling prune.
Fields§
§older_than: Option<DateTime<Utc>>Drop records whose timestamp is strictly older than this cutoff. A record with a missing/unparseable timestamp (or a malformed line) is conservatively kept.
max_size: Option<u64>After age pruning, drop the oldest records until the file is at most this many bytes. At least the single most recent record is always kept.
dry_run: boolCompute and report the outcome without modifying the file.
Auto Trait Implementations§
impl Freeze for PruneOptions
impl RefUnwindSafe for PruneOptions
impl Send for PruneOptions
impl Sync for PruneOptions
impl Unpin for PruneOptions
impl UnsafeUnpin for PruneOptions
impl UnwindSafe for PruneOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more