pub struct SearchHit {Show 19 fields
pub identifier: Option<String>,
pub slug: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub publisher: Option<String>,
pub organization: Option<Organization>,
pub keyword: Vec<String>,
pub theme: Vec<String>,
pub has_spatial: Option<bool>,
pub popularity: Option<i64>,
pub last_harvested_date: Option<String>,
pub distribution_titles: Vec<String>,
pub harvest_record: Option<String>,
pub harvest_record_raw: Option<String>,
pub spatial_centroid: Option<Value>,
pub spatial_shape: Option<Value>,
pub dcat: Option<Dataset>,
pub score: Option<f64>,
pub sort_key: Option<Value>,
}Expand description
A single search hit.
Denormalized top-level fields duplicate the most common DCAT-US 3 fields
for convenience; the full canonical record is nested under Self::dcat.
Fields§
§identifier: Option<String>Publisher-assigned identifier (often a URL or URN).
slug: Option<String>URL-friendly slug for this dataset in the data.gov UI.
title: Option<String>Human-readable title.
description: Option<String>Plain-text description.
publisher: Option<String>Short name of the publishing source (may be a domain or agency code).
organization: Option<Organization>Publishing organization record.
keyword: Vec<String>Free-form tags.
theme: Vec<String>DCAT-US themes (broad subject categories).
has_spatial: Option<bool>Whether this dataset advertises spatial coverage.
popularity: Option<i64>Opaque popularity score used for ranking.
last_harvested_date: Option<String>Timestamp of the most recent successful harvest.
distribution_titles: Vec<String>Distribution titles listed out for convenience (may be empty).
harvest_record: Option<String>URL of the harvest record for this dataset.
harvest_record_raw: Option<String>URL of the raw (pre-transform) harvest payload.
spatial_centroid: Option<Value>GeoJSON centroid if has_spatial is true.
spatial_shape: Option<Value>GeoJSON shape if has_spatial is true.
dcat: Option<Dataset>Canonical DCAT-US 3 record for this dataset.
score: Option<f64>Ranking score (present when sort=relevance).
sort_key: Option<Value>Cursor components that generated this hit’s position.