pub struct DataModelDetail {
pub name: String,
pub iri: String,
pub label: Option<String>,
pub last_modified: Option<String>,
pub resource_types: Vec<ResourceTypeSummary>,
}Expand description
A data-model as shown by dsp vre data-model describe — the rich projection.
Contrast DataModel (the lean list index projection). Carries identity
(name + iri), the server’s label and last_modified, and a summary
(count + names) of the data-model’s child resource-types — NOT their fields.
No serde derive: wire deserialization stays in src/client/http.rs.
See dsp-cli/ADR-0001 / dsp-cli/ADR-0008 and the CONTEXT.md “Data Model” / “Resource Type”
entries.
Fields§
§name: StringShort name of the data-model (e.g. beol), derived from the IRI.
iri: StringFull IRI of the data-model.
label: Option<String>Server-supplied human label (rdfs:label), if any.
last_modified: Option<String>Last-modification timestamp as a raw RFC3339 string, if supplied.
resource_types: Vec<ResourceTypeSummary>Lean references to the data-model’s child resource-types, sorted by name.
Trait Implementations§
Source§impl Clone for DataModelDetail
impl Clone for DataModelDetail
Source§impl Debug for DataModelDetail
impl Debug for DataModelDetail
impl Eq for DataModelDetail
Source§impl PartialEq for DataModelDetail
impl PartialEq for DataModelDetail
impl StructuralPartialEq for DataModelDetail
Auto Trait Implementations§
impl Freeze for DataModelDetail
impl RefUnwindSafe for DataModelDetail
impl Send for DataModelDetail
impl Sync for DataModelDetail
impl Unpin for DataModelDetail
impl UnsafeUnpin for DataModelDetail
impl UnwindSafe for DataModelDetail
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
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
Compare self to
key and return true if they are equal.