oxios_kernel/memory/
budget.rs1use serde::{Deserialize, Serialize};
4
5use super::MemoryType;
6
7#[derive(Debug, Clone, Serialize, Deserialize)]
9pub struct MemoryBudget {
10 pub max_per_type: usize,
12}
13
14impl Default for MemoryBudget {
15 fn default() -> Self {
16 Self { max_per_type: 100 }
17 }
18}
19
20#[derive(Debug, Clone, Serialize, Deserialize)]
22pub struct CurationCandidate {
23 pub id: String,
25 pub memory_type: MemoryType,
27 pub effective_importance: f32,
29}
30
31#[derive(Debug, Default, Clone, Serialize, Deserialize)]
33pub struct CurationReport {
34 pub total_before: usize,
36 pub total_after: usize,
38 pub removed: usize,
40 pub candidates_for_removal: Vec<CurationCandidate>,
42}