Skip to main content

Crate eorscope

Crate eorscope 

Source
Expand description

Dated statutory employer-contribution changes by country, read from official sources, as published by EOR Scope at https://eorscope.com/data/.

The dataset is embedded in the crate (no network access) and parsed once, on first use. Each Change carries its effective date, the new value (rate, annual cap, weekly threshold or annual floor), its legal status and the source it was read from, with a verbatim quote and the date it was read.

Cost comparison data, not legal or tax advice.

§Example

// United States: Social Security wage base for 2027.
let us = eorscope::changes_for_after("US", "2026-12-31");
let ss = us
    .iter()
    .find(|c| c.contribution_id.as_deref() == Some("social_security"))
    .expect("US Social Security 2027 change");
assert_eq!(ss.effective_from, "2027-01-01");
assert_eq!(ss.change.cap_annual_local, Some(192_300));
println!("{} from {}: {}", ss.country, ss.effective_from, ss.source.url);

Structs§

Change
A dated change to a statutory employer contribution.
CountrySchedule
Research state and scheduled changes for one country.
Dataset
The whole embedded dataset.
Delta
New values of a contribution; a None field is not changed.
Pending
A change that is not acquired: it must be shown as pending, never priced.
PendingSource
Source of a Pending item.
Source
Source of a Change.

Constants§

DATA_JSON
Raw JSON bytes of the embedded dataset, byte-identical to the file published with the site.

Functions§

changes
All scheduled changes, ordered by country code then as published.
changes_after
Scheduled changes effective strictly after date (yyyy-mm-dd, compared as a string).
changes_for
Scheduled changes for one country (ISO alpha-2 code, case-insensitive).
changes_for_after
Scheduled changes for one country effective strictly after date.
dataset
The parsed dataset, parsed once on first call.