pub trait RepositoryRecord {
type Id: Clone;
type File: RepositoryFile;
// Required methods
fn resource_id(&self) -> Option<Self::Id>;
fn title(&self) -> Option<&str>;
fn files(&self) -> &[Self::File];
}Expand description
Shared inspection surface for top-level resource payloads.
This trait intentionally treats embedded file lists as advisory. Some
services, notably Figshare, may return partial embedded file lists on the
main resource payload. Use ListResourceFiles when complete enumeration
matters.
Required Associated Types§
Sourcetype File: RepositoryFile
type File: RepositoryFile
Service-specific file entry type.
Required Methods§
Sourcefn resource_id(&self) -> Option<Self::Id>
fn resource_id(&self) -> Option<Self::Id>
Returns the top-level resource identifier when it can be read directly from the payload.