oxios_memory/memory/
quota.rs1#![allow(missing_docs)]
2use serde::{Deserialize, Serialize};
5
6use crate::memory::types::MemoryType;
7
8#[derive(Debug, Clone, Serialize, Deserialize)]
10pub struct MemoryBudget {
11 pub max_per_type: usize,
13}
14
15impl Default for MemoryBudget {
16 fn default() -> Self {
17 Self { max_per_type: 100 }
18 }
19}
20
21#[derive(Debug, Clone, Serialize, Deserialize)]
23pub struct CurationCandidate {
24 pub id: String,
26 pub memory_type: MemoryType,
28 pub effective_importance: f32,
30}
31
32#[derive(Debug, Default, Clone, Serialize, Deserialize)]
34pub struct CurationReport {
35 pub total_before: usize,
37 pub total_after: usize,
39 pub removed: usize,
41 pub candidates_for_removal: Vec<CurationCandidate>,
43}