harmos_storage/state/config.rs
1/* ***
2 *
3 * Harmos
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * ***
8 */
9
10// State Backend Resource Limits
11
12/* === Modules === */
13
14/* === Re-Exports === */
15
16/* === Imports === */
17
18// Standard Library Imports
19use std::num::NonZeroUsize;
20
21// Third Party Imports
22use serde::{Deserialize, Serialize};
23
24// Local Imports
25
26/* === Constants === */
27
28/* === Macros === */
29
30/* === Type Aliases === */
31
32/* === Structs === */
33
34#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
35#[serde(deny_unknown_fields)]
36pub struct StorageStateSettings {
37 pub max_entry_bytes: NonZeroUsize,
38
39 pub max_checkpoint_bytes: NonZeroUsize,
40}
41
42/* === Enums === */
43
44/* === Traits === */
45
46/* === Implementations === */
47
48/* === Public Functions === */
49
50/* === Private Functions === */
51
52/* === Tests === */