pub struct ResourceTypeSummary {
pub name: String,
pub iri: String,
pub label: Option<String>,
}Expand description
A lean reference to a child resource-type, as surfaced by
data-model describe.
The describe-summary projection: identity (name + iri) plus the server’s
human label. Full resource-type detail (fields, value-types, cardinalities)
is surfaced by the dsp vre resource-type describe leaf command — see
model::ResourceTypeDetail / Field.
name is derived from the resource-type’s IRI by the HTTP client layer at the
ADR-0001 boundary — it is NOT a server-supplied field. No serde derive: wire
deserialization stays in src/client/http.rs.
Fields§
§name: StringShort name of the resource-type (e.g. letter), derived from the IRI.
iri: StringFull IRI of the resource-type
(e.g. http://api.dasch.swiss/ontology/0801/beol/v2#letter).
label: Option<String>Server-supplied human label (rdfs:label), if any.
Trait Implementations§
Source§impl Clone for ResourceTypeSummary
impl Clone for ResourceTypeSummary
Source§fn clone(&self) -> ResourceTypeSummary
fn clone(&self) -> ResourceTypeSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceTypeSummary
impl Debug for ResourceTypeSummary
impl Eq for ResourceTypeSummary
Source§impl PartialEq for ResourceTypeSummary
impl PartialEq for ResourceTypeSummary
impl StructuralPartialEq for ResourceTypeSummary
Auto Trait Implementations§
impl Freeze for ResourceTypeSummary
impl RefUnwindSafe for ResourceTypeSummary
impl Send for ResourceTypeSummary
impl Sync for ResourceTypeSummary
impl Unpin for ResourceTypeSummary
impl UnsafeUnpin for ResourceTypeSummary
impl UnwindSafe for ResourceTypeSummary
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.