pub struct ResourceDetail {
pub label: String,
pub iri: String,
pub resource_type: String,
pub ark_url: Option<String>,
pub creation_date: Option<String>,
pub last_modified: Option<String>,
pub attached_project: Option<String>,
pub owner: Option<String>,
pub visibility: Option<ResourceVisibility>,
pub your_access: Option<ResourceAccess>,
pub values: Option<Vec<FieldValues>>,
}Expand description
Full envelope metadata for a single resource instance.
Returned by [DspClient::describe_resource]. Contains the resource’s
identity, audit timestamps, ownership, and two translated permission facets
(visibility and the caller’s access level). The values field is populated
only when --values is requested (Phase 8c); it is None for the default
metadata-only mode (Phase 8b).
Fields§
§label: StringHuman-readable label assigned to this resource instance.
iri: StringAbsolute IRI of this resource instance.
resource_type: StringLocal name of the resource type (e.g. “Page”).
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. Absent for resources that have never been modified.
attached_project: Option<String>IRI of the project this resource belongs to, if present in the response.
owner: Option<String>IRI of the user who owns this resource, if present in the response.
visibility: Option<ResourceVisibility>Who can see this resource, derived from the resource’s access-control list.
None when the ACL is absent or unparseable.
your_access: Option<ResourceAccess>What the requesting caller can do with this resource.
None when the caller’s effective permission is absent or unknown.
values: Option<Vec<FieldValues>>Parsed field values for this resource instance.
None when --values is not set (metadata-only mode — the default).
Some when --values is set; the vec may still be empty if the resource
has no readable user fields.
Trait Implementations§
Source§impl Clone for ResourceDetail
impl Clone for ResourceDetail
Source§fn clone(&self) -> ResourceDetail
fn clone(&self) -> ResourceDetail
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more