pub struct DataModel {
pub name: String,
pub iri: String,
pub label: Option<String>,
pub last_modified: Option<String>,
pub is_builtin: bool,
}Expand description
A data-model as shown by dsp vre data-model list.
The list projection: identity (name + iri) plus the server’s label
and last_modified metadata, and whether it is a platform built-in
(inherited by every project) rather than project-defined. name is derived
from the IRI at the client boundary — not a wire field. No serde derive:
wire deserialization stays in src/client/http.rs. See ADR-0001 / ADR-0008
and the CONTEXT.md “Data Model” / “Built-in” entries.
Fields§
§name: StringShort name of the data-model (e.g. beol), derived from the IRI.
iri: StringFull IRI of the data-model (e.g. http://api.dasch.swiss/ontology/0801/beol/v2).
label: Option<String>Server-supplied human label (rdfs:label), if any.
last_modified: Option<String>Last-modification timestamp as a raw RFC3339 string, if the server
supplies one. Built-ins carry None.
is_builtin: booltrue for platform built-ins (knora-api, standoff, salsah-gui);
false for project-defined data-models.
Trait Implementations§
impl Eq for DataModel
impl StructuralPartialEq for DataModel
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
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.