Crate phonenumber [−] [src]
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 |
Metadata |
Phone number metadata. |
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 |
Functions
format |
Create a new |
format_with |
Create a new |
is_valid |
Check if the phone number is valid. |
is_valid_with |
Check if the phone number is valid with the given |
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 |