Skip to content

Add CountryCode (contact) #9

@vhrcgcom

Description

@vhrcgcom

Description

Implement CountryCode as a ValueObject in the contact module.

Spec: ISO 3166-1 alpha-2, normalised to uppercase

Implementation checklist

  • Create src/contact/countrycode.rs
  • Implement ValueObject trait
  • Add #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
  • Export from src/contact/mod.rs and prelude
  • Unit tests: valid input · empty input · invalid format · normalisation
  • Doc comment with # Example block
  • Update status in ROADMAP.md from ⬜ to ✅

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions