harmos_storage/json/config.rs
1/* ***
2 *
3 * Harmos
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * ***
8 */
9
10// Explicit JSON Storage Paths And Entry Bounds.
11
12/* === Modules === */
13
14/* === Re-Exports === */
15
16/* === Imports === */
17
18// Standard Library Imports
19use std::{num::NonZeroUsize, path::PathBuf};
20
21// Third Party Imports
22
23// Local Imports
24
25/* === Constants === */
26
27/* === Macros === */
28
29/* === Type Aliases === */
30
31/* === Structs === */
32
33#[derive(Clone, Debug)]
34pub struct JsonStorageSettings {
35 pub root: PathBuf,
36 pub max_entry_bytes: NonZeroUsize,
37}
38
39/* === Enums === */
40
41/* === Traits === */
42
43/* === Implementations === */
44
45/* === Public Functions === */
46
47/* === Private Functions === */
48
49/* === Tests === */