pub struct DataModelStructure {
pub data_model: String,
pub relations: Vec<Relation>,
}Expand description
The structure of a data-model — the set of relations between its resource-types.
A describe-shaped DETAIL struct (like DataModelDetail), passed directly to
the renderer. Carries the baseline data-model name (for prose headers and
cross-data-model tagging) and the full sorted relation list. No serde derive:
wire deserialization stays in src/client/http.rs. See ADR-0001 / ADR-0008
and the CONTEXT.md “Structure” / “Relation” entries.
Fields§
§data_model: StringBaseline data-model name (e.g. beol). Used as the prose header and as
the baseline when the renderer tags cross-data-model targets ([to <dm>]):
target_data_model == Some(x) && x != data_model → emit [to x].
relations: Vec<Relation>All relations of the data-model, sorted per D6 by (source, kind, field, target).
The client sorts; the action filters by is_builtin unless --include-builtins.
Trait Implementations§
Source§impl Clone for DataModelStructure
impl Clone for DataModelStructure
Source§fn clone(&self) -> DataModelStructure
fn clone(&self) -> DataModelStructure
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DataModelStructure
impl Debug for DataModelStructure
impl Eq for DataModelStructure
Source§impl PartialEq for DataModelStructure
impl PartialEq for DataModelStructure
impl StructuralPartialEq for DataModelStructure
Auto Trait Implementations§
impl Freeze for DataModelStructure
impl RefUnwindSafe for DataModelStructure
impl Send for DataModelStructure
impl Sync for DataModelStructure
impl Unpin for DataModelStructure
impl UnsafeUnpin for DataModelStructure
impl UnwindSafe for DataModelStructure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.