typeables/phone_e164_trial_identification_code.rs
1//! # Phone E.164 Trial Identification Code
2//!
3//! Examples:
4//! ```
5//! # use typeables::phone_e164_trial_identification_code::*;
6//! let x = PhoneE164TrialIdentificationCodeAsStructStr("TODO");
7//! ```
8//!
9//! Compare:
10//!
11//! * [phone_e164_text](../phone_e164_text)
12//! * [phone_e164_country_code](../phone_e164_country_code)
13//! * [phone_e164_national_destimation_code](../phone_e164_national_destimation_code)
14//! * [phone_e164_subscriber_number](../phone_e164_subscriber_number)
15//! * [phone_e164_group_identification_code](../phone_e164_group_identification_code)
16//! * [phone_e164_trial_identification_code](../phone_e164_trial_identification_code)
17//!
18//! <https://en.wikipedia.org/wiki/E.164>
19//!
20//! E.164 is an international standard (ITU-T Recommendation), titled The
21//! international public telecommunication numbering plan, that defines a
22//! numbering plan for the worldwide public switched telephone network (PSTN)
23//! and some other data networks.
24//!
25//! E.164 defines a general format for international telephone numbers.
26//! Plan-conforming numbers are limited to a maximum of 15 digits, excluding the
27//! international call prefix. The presentation of a number at the B-party
28//! device is usually prefixed with the plus sign (+), indicating that the
29//! number includes the country calling code. This is done by the B-party
30//! subscribers network by usually looking at the NOA (Nature Of Address) field
31//! of the signaling messages. When dialing, the number must typically be
32//! prefixed with the appropriate international call prefix (in place of the
33//! plus sign), which is a trunk code to reach an international circuit from
34//! within the country of call origination.
35//!
36//! E.164 phone number format contains: [+][country code][area code][local phone number]
37//!
38//! * `+` is the plus sign which indicates use of a country code.
39//! * country code a.k.a. international dialer e.g. `1` is United States.
40//! * national destination code a.k.a. area code e.g. `212` is New York City.
41//! * local phone number e.g. `555 0000` is an example U.S. local phone number.
42//!
43//! List of country calling codes:
44//! <https://en.wikipedia.org/wiki/List_of_country_calling_codes>
45//!
46//! Fake phone numbers for example purposes:
47//!
48//! * United States fake phone numbers start with local number 555.
49//! * China fake phone numbers start with 13, 15, 18.
50//! * India fake phone numbers start with 7, 8, 9.
51
52pub struct PhoneE164TrialIdentificationCodeAsStructStr(pub &'static str);
53pub struct PhoneE164TrialIdentificationCodeAsStructString(pub String);
54
55pub type PhoneE164TrialIdentificationCodeAsTypeStr = str;
56pub type PhoneE164TrialIdentificationCodeAsTypeString = String;