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.
- Country
Schedule - Research state and scheduled changes for one country.
- Dataset
- The whole embedded dataset.
- Delta
- New values of a contribution; a
Nonefield is not changed. - Pending
- A change that is not acquired: it must be shown as pending, never priced.
- Pending
Source - Source of a
Pendingitem. - 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.