Moved Records into the document module.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s

This commit is contained in:
2026-02-13 12:00:39 -05:00
parent a9b87200ef
commit 404c6e9c34
13 changed files with 2526 additions and 28 deletions

View File

@@ -1,6 +1,5 @@
use crate::{
action::{CalcValue, MsgAction, Operand, Query},
document::field::{Field, FieldType},
action::{CalcValue, Field, FieldType, MsgAction, Operand, Query},
mtterror::{ErrorID, MTTError},
name::{NameType, Names},
queue::data_director::{Include, Path, Route},
@@ -88,7 +87,7 @@ impl Message {
#[cfg(test)]
mod messages {
use super::*;
use crate::{document::definition::DocDef, name::Name};
use crate::{action::DocDef, name::Name};
#[test]
fn can_the_document_be_a_named_reference() {
@@ -429,7 +428,7 @@ impl InternalRecords {
self.data.keys()
}
fn values(&self) -> impl Iterator<Item = &InternalRecord> {
pub fn values(&self) -> impl Iterator<Item = &InternalRecord> {
self.data.values()
}
@@ -437,7 +436,7 @@ impl InternalRecords {
self.data.contains_key(oid)
}
fn len(&self) -> usize {
pub fn len(&self) -> usize {
self.data.len()
}
}
@@ -449,7 +448,7 @@ pub struct Record {
}
impl Record {
fn with_data(names: Names, rec: InternalRecord) -> Self {
pub fn with_data(names: Names, rec: InternalRecord) -> Self {
Self {
names: names,
data: rec,
@@ -471,6 +470,7 @@ impl Record {
}
}
/*
#[derive(Clone, Debug)]
pub struct Records {
names: Names,
@@ -533,6 +533,7 @@ impl Iterator for RecordIter {
}
}
}
*/
#[derive(Clone, Debug)]
pub struct Document {