pub struct ResourceSummary {
pub label: String,
pub iri: String,
pub ark_url: Option<String>,
pub creation_date: Option<String>,
pub last_modified: Option<String>,
pub resource_type: String,
}Expand description
A single resource instance, as returned by the list endpoint.
Fields are the envelope metadata only (label, IRI, ARK URL, creation date, last-modification date, resource type). Values are NOT fetched at list time — see D4 in the plan.
Uses the detailed representation: ark_url, creation_date, and
last_modified are Option<String> for robustness; the list endpoint uses
the complex schema so both dates populate (verified live on dev 2026-06-17).
last_modified is additionally server-side optional — a resource that has
never been modified will have none. The live test (Layer 5) makes hard
assertions on the load-bearing fields.
Fields§
§label: StringHuman-readable label assigned to this resource instance.
iri: StringAbsolute IRI of this resource instance (its @id).
ark_url: Option<String>ARK URL for permanent citation, if present in the response.
creation_date: Option<String>RFC 3339 creation timestamp, if present in the response.
last_modified: Option<String>RFC 3339 last-modification timestamp, if present in the response. Server-side optional — absent for resources that have never been modified.
resource_type: StringLocal name of the resource type (derived from @type).
Trait Implementations§
Source§impl Clone for ResourceSummary
impl Clone for ResourceSummary
Source§fn clone(&self) -> ResourceSummary
fn clone(&self) -> ResourceSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more