pub struct Datastore {
pub storage_max: String,
pub storage_gc_watermark: i64,
pub gc_period: String,
pub spec: HashMap<String, Value>,
pub hash_on_read: bool,
pub bloom_filter_size: i32,
pub block_key_cache_size: Option<OptionalInteger>,
pub write_through: Option<Flag>,
}Expand description
Datastore configuration section
Fields§
§storage_max: StringMaximum storage size (e.g., “10GB”)
storage_gc_watermark: i64GC watermark percentage (0-100)
gc_period: StringGC period (e.g., “1h”)
spec: HashMap<String, Value>Datastore specification (type-dependent configuration)
hash_on_read: boolWhether to verify block hashes on read
bloom_filter_size: i32Bloom filter size for blockstore
block_key_cache_size: Option<OptionalInteger>Block key cache size
write_through: Option<Flag>Whether to write through cache
Implementations§
Source§impl Datastore
impl Datastore
Sourcepub fn default_config() -> Self
pub fn default_config() -> Self
Create default datastore configuration
Sourcepub fn default_spec() -> HashMap<String, Value>
pub fn default_spec() -> HashMap<String, Value>
Get the default FlatFS datastore spec
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Datastore
impl<'de> Deserialize<'de> for Datastore
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 Datastore
impl RefUnwindSafe for Datastore
impl Send for Datastore
impl Sync for Datastore
impl Unpin for Datastore
impl UnwindSafe for Datastore
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