Expand description
§Intervasp Messaging Standard 101 Rust library
This crate provides functionality for working with data payloads defined in the Intervasp Messaging Standard 101.
use ivms101::Validatable;
let person = ivms101::NaturalPerson::new("John", "Doe", Some("id-273934"), None).unwrap();
assert!(person.validate().is_ok());
Structs§
- Address
- A localized natural person name.
- Beneficiary
- The transaction beneficiary.
- BeneficiaryVASP
- The beneficiary VASP wrapper.
- Country
Code - A ISO 3166-1 Alpha-2 country code.
- Date
AndPlace OfBirth - The date and place of birth.
- IVMS101
- The main IVMS101 data structure.
- IntermediaryVASP
- An intermediary VASP.
- Legal
Person - A legal person.
- Legal
Person Name - The name of a legal person.
- Legal
Person NameID - A legal person name ID.
- National
Identification - National identification information.
- Natural
Person - A natural person.
- Natural
Person Name - The name of a natural person.
- Natural
Person NameID - The natural person name ID.
- OriginatingVASP
- The originating VASP wrapper.
- Originator
- The transaction originator.
Enums§
- Address
Type Code - The type of address.
- Error
- An error while validating an IVMS data structure.
- Legal
Person Name Type Code - The type of legal person name.
- National
Identifier Type Code - The type of national identifier.
- Natural
Person Name Type Code - The type of natural person name.
- OneToN
OneToN
is a helper enum to accept a singleton or non-empty list-enumerated field during deserialization.- Person
- Either a natural or a legal person.
- ZeroToN
ZeroToN
is a helper enum to accept an absent, singleton or list-enumerated field during deserialization. It is used in the following way:
Traits§
- Validatable
- Implements validation for a data structure according to the rules of the IVMS101 standard.
Functions§
- country
- Retrieves the full name of the country given a two-letter ISO 3166-1 alpha-2 country code.
- format_
address - Formats the address into a single formatter.