Crate ivms101

Source
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.
CountryCode
A ISO 3166-1 Alpha-2 country code.
DateAndPlaceOfBirth
The date and place of birth.
IVMS101
The main IVMS101 data structure.
IntermediaryVASP
An intermediary VASP.
LegalPerson
A legal person.
LegalPersonName
The name of a legal person.
LegalPersonNameID
A legal person name ID.
NationalIdentification
National identification information.
NaturalPerson
A natural person.
NaturalPersonName
The name of a natural person.
NaturalPersonNameID
The natural person name ID.
OriginatingVASP
The originating VASP wrapper.
Originator
The transaction originator.

Enums§

AddressTypeCode
The type of address.
Error
An error while validating an IVMS data structure.
LegalPersonNameTypeCode
The type of legal person name.
NationalIdentifierTypeCode
The type of national identifier.
NaturalPersonNameTypeCode
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.