pub enum StorageBackendType {
Memory,
RocksDb {
path: String,
},
Redb {
path: String,
},
Postgres {
url: String,
},
}Expand description
Supported storage backend types.
Variants§
Memory
In-memory (development only, data lost on restart).
RocksDb
RocksDB persistent storage.
Redb
Redb persistent storage.
Postgres
PostgreSQL persistent storage (recommended for Railway / cloud).
Trait Implementations§
Source§impl Clone for StorageBackendType
impl Clone for StorageBackendType
Source§fn clone(&self) -> StorageBackendType
fn clone(&self) -> StorageBackendType
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 StorageBackendType
impl Debug for StorageBackendType
Source§impl PartialEq for StorageBackendType
impl PartialEq for StorageBackendType
impl Eq for StorageBackendType
impl StructuralPartialEq for StorageBackendType
Auto Trait Implementations§
impl Freeze for StorageBackendType
impl RefUnwindSafe for StorageBackendType
impl Send for StorageBackendType
impl Sync for StorageBackendType
impl Unpin for StorageBackendType
impl UnwindSafe for StorageBackendType
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