pub struct IdempotencyConfig {
pub ttl_hours: Option<u32>,
pub sweep_interval_minutes: Option<u32>,
}Expand description
Idempotency-key sweep settings.
When ttl_hours is Some, the daemon runs a background task that nulls
out idempotency keys older than the TTL. The row itself is retained so
existing primary-key lookups still work; only the dedup contract expires.
Fields§
§ttl_hours: Option<u32>Hours to retain idempotency keys before the sweep nulls them out.
Default None disables the sweep.
sweep_interval_minutes: Option<u32>How often the sweep runs, in minutes. Default 60.
Trait Implementations§
Source§impl Clone for IdempotencyConfig
impl Clone for IdempotencyConfig
Source§fn clone(&self) -> IdempotencyConfig
fn clone(&self) -> IdempotencyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IdempotencyConfig
impl Debug for IdempotencyConfig
Source§impl Default for IdempotencyConfig
impl Default for IdempotencyConfig
Source§fn default() -> IdempotencyConfig
fn default() -> IdempotencyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IdempotencyConfig
impl<'de> Deserialize<'de> for IdempotencyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IdempotencyConfig
impl RefUnwindSafe for IdempotencyConfig
impl Send for IdempotencyConfig
impl Sync for IdempotencyConfig
impl Unpin for IdempotencyConfig
impl UnsafeUnpin for IdempotencyConfig
impl UnwindSafe for IdempotencyConfig
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