pub struct EventStoreConfig {
pub max_events: usize,
pub max_age: Duration,
pub auto_cleanup: bool,
pub cleanup_interval: Duration,
}
Expand description
Configuration for event store behavior.
Fields§
§max_events: usize
Maximum number of events to keep
max_age: Duration
Maximum age of events to keep
auto_cleanup: bool
Enable automatic cleanup
cleanup_interval: Duration
Cleanup interval
Trait Implementations§
Source§impl Clone for EventStoreConfig
impl Clone for EventStoreConfig
Source§fn clone(&self) -> EventStoreConfig
fn clone(&self) -> EventStoreConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EventStoreConfig
impl Debug for EventStoreConfig
Auto Trait Implementations§
impl Freeze for EventStoreConfig
impl RefUnwindSafe for EventStoreConfig
impl Send for EventStoreConfig
impl Sync for EventStoreConfig
impl Unpin for EventStoreConfig
impl UnwindSafe for EventStoreConfig
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