Crate codes-agency
This package provides a common code representing standards agencies.
The two core types, [Agency] and [Standard] work together to provide reporting capabilities to other codes project packages. Specifically a package that provides types corresponding to a standard definition can have an instance of the [Standard] struct that describes the standard. This in turn references the [Agency] that controls the standard.
Consider the following example from the ISO 4217 package.
use ;
// Taken from codes_iso_4217
pub const ISO_4217: Standard = new_with_long_ref;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
For notes on the design of the API, see the repository README.
Features
By default only the serde feature is enabled.
serde- Enables serialization of theAgencytype.
Changes
Version 0.1.9
- Added new
standardized_typemacro.
Version 0.1.8
- Added new
Standardizedtrait.
Version 0.1.7
- Add the GS1 as a new Agency.
Version 0.1.6
- Add the UN as a new Agency.
Version 0.1.5
- Added
ALL_CODESconstant.
Version 0.1.4
- Clean-up implementation based on newer
codes-common - Using new
Codetrait and macro-created implementation.
Version 0.1.3
- Added documentation to
Agencyvariants. - Renamed
Errorto be inline with other package naming conventions.
Version 0.1.2
- Remove the trait
Code. - Remove some feature flags.
- Added documentation.
- Added IANA, IEEE, IETF as agencies.
Version 0.1.1
- Initial documentation.
Version 0.1.0
- Initial place-holder release.
TODO
- Create a build system from agencies.xml
- Add a
parent_agencymethod (ITU is a part of UN)