pub struct AutocompleteResult {
pub id: String,
pub short_id: Option<String>,
pub display_name: String,
pub hint: Option<String>,
pub cited_by_count: Option<i64>,
pub works_count: Option<i64>,
pub entity_type: Option<String>,
pub external_id: Option<String>,
pub filter_key: Option<String>,
}Expand description
A single autocomplete result.
The hint field contains contextual information that varies by entity type:
- works: first author name
- authors: last known institution and country
- sources: host organization
- institutions: city and country
- publishers: country
- funders: country and description
Fields§
§id: StringFull OpenAlex URI (e.g. "https://openalex.org/A5024159082").
short_id: Option<String>Short ID path (e.g. "authors/A5024159082").
display_name: StringHuman-readable entity name.
hint: Option<String>Contextual hint whose meaning varies by entity type (see struct docs).
cited_by_count: Option<i64>Total citation count for this entity.
works_count: Option<i64>Total works count for this entity.
entity_type: Option<String>Entity type: one of "work", "author", "source", "institution",
"publisher", "funder". Returns null for subfield autocomplete
(known API quirk).
external_id: Option<String>External identifier (e.g. ISSN for sources, ROR for institutions).
None if not available.
filter_key: Option<String>The filter field name to use this result in subsequent list queries. For
example, "authorships.author.id" for authors, or
"primary_location.source.id" for sources.
Trait Implementations§
Source§impl Clone for AutocompleteResult
impl Clone for AutocompleteResult
Source§fn clone(&self) -> AutocompleteResult
fn clone(&self) -> AutocompleteResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more