pub struct StorageConfig {
pub backend: StorageBackendType,
pub sqlite: SqliteConfig,
pub postgres: PostgresConfig,
pub redis: RedisConfig,
pub retention: RetentionConfig,
/* private fields */
}Expand description
Durable-persistence configuration for the gateway (Epic 18).
Composes the per-engine knobs (sqlite, postgres, redis) with
retention-lifecycle parameters and a backend selector. Empty YAML
hydrates straight to Self::default() thanks to #[serde(default)]
on the struct itself; missing nested sections use each sub-config’s
own Default.
Fields§
§backend: StorageBackendTypeWhich StorageBackend to instantiate at startup.
sqlite: SqliteConfigSQLite-specific settings (backend = Sqlite).
postgres: PostgresConfigPostgres-specific settings (backend = Postgres).
redis: RedisConfigOptional Redis cache (enabled = false by default).
retention: RetentionConfigHot / warm / cold audit-event lifecycle policy.
Trait Implementations§
Source§impl Clone for StorageConfig
impl Clone for StorageConfig
Source§fn clone(&self) -> StorageConfig
fn clone(&self) -> StorageConfig
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 StorageConfig
impl Debug for StorageConfig
Source§impl Default for StorageConfig
impl Default for StorageConfig
Source§fn default() -> StorageConfig
fn default() -> StorageConfig
Returns the “default value” for a type. Read more
impl Eq for StorageConfig
Source§impl PartialEq for StorageConfig
impl PartialEq for StorageConfig
Source§fn eq(&self, other: &StorageConfig) -> bool
fn eq(&self, other: &StorageConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StorageConfig
Auto Trait Implementations§
impl Freeze for StorageConfig
impl RefUnwindSafe for StorageConfig
impl Send for StorageConfig
impl Sync for StorageConfig
impl Unpin for StorageConfig
impl UnsafeUnpin for StorageConfig
impl UnwindSafe for StorageConfig
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
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§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.