pub struct Model {
pub mounts: Vec<Mount>,
pub nodes: Vec<NodeDecl>,
pub refs: Vec<RefDecl>,
pub edges: Vec<EdgeDecl>,
pub defs_text: String,
}Expand description
One parsed model file.
Fields§
§mounts: Vec<Mount>mount NAME: target; — sources the model opens itself.
nodes: Vec<NodeDecl>node NAME: query; — derived value containers.
refs: Vec<RefDecl>ref PATH::field --> container; — scoped references.
edges: Vec<EdgeDecl>edge PATH: ::a -- ::b; — pair edges between containers.
defs_text: Stringdef/macro statements, verbatim, joined with ; — seeded
into every constructor query’s fragment table.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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