Moved CalcValue into action.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2s

This commit is contained in:
2026-02-08 11:59:54 -05:00
parent 445cbb57f1
commit aa7d5ae1f6
9 changed files with 239 additions and 43 deletions

View File

@@ -1,6 +1,5 @@
use crate::{
document::field::Field,
message::wrapper::CalcValue,
action::{CalcValue, Field},
name::NameType,
};
use std::collections::HashMap;
@@ -35,14 +34,6 @@ impl RequestData {
}
}
fn get_all(&self) -> Vec<(NameType, Field)> {
let mut output = Vec::new();
for (key, value) in self.data.iter() {
output.push((key.clone(), value.get(&Field::None)));
}
output
}
pub fn iter(&self) -> impl Iterator<Item = (&NameType, &CalcValue)> {
self.data.iter()
}