Crate phonenumber

Source

Re-exports§

pub use crate::metadata::Metadata;

Modules§

country
Country related types. Country related types.
metadata
Phone number metadata, containing patterns, formatting and other useful data about countries and phone numbers.

Structs§

Carrier
A phone number carrier.
Extension
A phone number extension.
Formatter
A formatter for a PhoneNumber.
NationalNumber
The national number part of a phone number.
PhoneNumber
A phone number.

Enums§

MetadataError
Metadata loading errors.
Mode
Formatting modes for phone number.
ParseError
Parsing errors.
Type
The phone number type.
Validation
Possible outcomes when testing if a PhoneNumber is possible.

Functions§

format
Create a new Formatter for the given phone number.
format_with
Create a new Formatter for the given phone number using the given metadata database.
is_valid
Check if the phone number is valid.
is_valid_with
Check if the phone number is valid with the given Database.
is_viable
Check if the provided string is a viable phone number.
parse
Parse a phone number.
parse_with
Parse a phone number using a specific Database.