pub struct DataModel {
pub schema_format: String,
pub type_attribute: String,
pub entities: Vec<EntityDefinition>,
}Expand description
Application-level data model parsed from a schema file (e.g., OneTable). Designed for agent consumption — serializes to JSON for MCP responses.
Fields§
§schema_format: StringSchema format identifier, e.g. “onetable:1.1.0”
type_attribute: StringThe attribute name used to discriminate entity types (e.g. “_type”)
entities: Vec<EntityDefinition>Entity definitions with key templates and GSI mappings
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataModel
impl RefUnwindSafe for DataModel
impl Send for DataModel
impl Sync for DataModel
impl Unpin for DataModel
impl UnsafeUnpin for DataModel
impl UnwindSafe for DataModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more