pub struct ArchiveConfig { /* private fields */ }Expand description
Configuration for HistoryRetention::Archive.
Implementations§
Source§impl ArchiveConfig
impl ArchiveConfig
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates archive settings with deterministic Markdown export enabled and no size cap.
Sourcepub const fn with_max_segments(self, max_segments: Option<NonZeroUsize>) -> Self
pub const fn with_max_segments(self, max_segments: Option<NonZeroUsize>) -> Self
Sets the maximum number of archived segments to retain on disk.
Sourcepub const fn with_max_bytes(self, max_bytes: Option<NonZeroU64>) -> Self
pub const fn with_max_bytes(self, max_bytes: Option<NonZeroU64>) -> Self
Sets the maximum total byte size across archived segment files.
Sourcepub const fn with_export_markdown(self, export_markdown: bool) -> Self
pub const fn with_export_markdown(self, export_markdown: bool) -> Self
Enables or disables deterministic Markdown archive export (seg_NNNN.md + INDEX.md).
Sourcepub const fn max_segments(&self) -> Option<NonZeroUsize>
pub const fn max_segments(&self) -> Option<NonZeroUsize>
Maximum number of archived segments retained on disk, if bounded.
Sourcepub const fn max_bytes(&self) -> Option<NonZeroU64>
pub const fn max_bytes(&self) -> Option<NonZeroU64>
Maximum total bytes retained across archived segment files, if bounded.
Sourcepub const fn export_markdown(&self) -> bool
pub const fn export_markdown(&self) -> bool
Whether deterministic Markdown archives (seg_NNNN.md + INDEX.md) are written.
Trait Implementations§
Source§impl Clone for ArchiveConfig
impl Clone for ArchiveConfig
impl Copy for ArchiveConfig
Source§impl Debug for ArchiveConfig
impl Debug for ArchiveConfig
Source§impl Default for ArchiveConfig
impl Default for ArchiveConfig
impl Eq for ArchiveConfig
Source§impl PartialEq for ArchiveConfig
impl PartialEq for ArchiveConfig
impl StructuralPartialEq for ArchiveConfig
Auto Trait Implementations§
impl Forget for ArchiveConfig
impl Freeze for ArchiveConfig
impl Move for ArchiveConfig
impl RefUnwindSafe for ArchiveConfig
impl Send for ArchiveConfig
impl Sync for ArchiveConfig
impl Unpin for ArchiveConfig
impl UnsafeUnpin for ArchiveConfig
impl UnwindSafe for ArchiveConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.