Skip to main content

Crate aspero_core

Crate aspero_core 

Source
Expand description

Core types, identifier parsing/normalisation, the Provider trait and errors. No I/O.

Re-exports§

pub use error::Error;
pub use error::ErrorCategory;
pub use error::Result;
pub use http::HttpClient;
pub use http::HttpRequest;
pub use http::HttpResponse;
pub use id::ArxivId;
pub use id::CorpusId;
pub use id::Doi;
pub use id::IdError;
pub use id::IdKind;
pub use id::Isbn;
pub use id::OpenAlexId;
pub use id::Pmcid;
pub use id::Pmid;
pub use id::S2PaperId;
pub use id::WorkId;
pub use matching::Agreement;
pub use matching::Assessment;
pub use matching::Claim;
pub use matching::FieldCheck;
pub use provider::Capabilities;
pub use provider::Cursor;
pub use provider::Filter;
pub use provider::Hit;
pub use provider::Lookup;
pub use provider::Page;
pub use provider::PageReq;
pub use provider::Provider;
pub use provider::ProviderId;
pub use provider::Response;
pub use provider::SearchMode;
pub use provider::SearchQuery;
pub use provider::Usage;
pub use provider::YearRange;
pub use record::Field;
pub use record::FieldSet;
pub use record::Raw;
pub use record::SourceRecord;
pub use resilience::ResiliencePolicy;
pub use work::PartialDate;
pub use work::Person;
pub use work::Update;
pub use work::UpdateKind;
pub use work::UpdateTo;
pub use work::Work;
pub use work::WorkType;
pub use work::tidy_abstract;

Modules§

csl
CSL-JSON items, as served by doi.org content negotiation and used for citation export/import.
error
The error contract between providers, the engine and front ends.
http
The transport seam between providers and the network.
id
Scholarly work identifiers: parsing, normalisation and canonical display.
matching
Does a record match what a citation claims? Pure scoring, no I/O.
provider
The Provider trait: the contract every literature source implements.
record
What a provider returns about one work: normalised fields, every identifier it asserts, and the untouched raw response.
resilience
Per-provider politeness and failure-handling settings, and the pure maths behind them. The engine applies the policy; nothing here sleeps or reads a clock, so it is deterministic to test.
work
The minimal, provider-neutral description of a scholarly work.