Moved Records into the document module.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user