pub struct StorageConfig {
pub backend: StorageBackend,
pub data_dir: String,
pub max_size_gb: u64,
pub evict_orphans: bool,
pub s3: Option<S3Config>,
}Expand description
Storage configuration
Fields§
§backend: StorageBackendStorage backend: “lmdb” (default) or “fs”
data_dir: String§max_size_gb: u64§evict_orphans: bool§s3: Option<S3Config>Trait Implementations§
Source§impl Clone for StorageConfig
impl Clone for StorageConfig
Source§impl Debug for StorageConfig
impl Debug for StorageConfig
Source§impl Default for StorageConfig
impl Default for StorageConfig
Source§impl<'de> Deserialize<'de> for StorageConfig
impl<'de> Deserialize<'de> for StorageConfig
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 Forget for StorageConfig
impl Freeze for StorageConfig
impl Move for StorageConfig
impl RefUnwindSafe for StorageConfig
impl Send for StorageConfigwhere
RawVecInner: Send,
impl Sync for StorageConfigwhere
RawVecInner: Sync,
impl Unpin for StorageConfig
impl UnsafeUnpin for StorageConfig
impl UnwindSafe for StorageConfigwhere
RawVecInner: UnwindSafe,
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