Crate imei_info

Source

Structs§

Imei
An IMEI number, represented using an array of digits to prevent integer over/underflow or leading-zero truncation.
PhoneInfo
The basic information about a phone: its IMEI, make, and model. This is generally used in a context where the IMEI is already known, but it is included for flexibility’s sake.
Tac
A TAC number, represented using an array of digits to prevent integer over/underflow or leading-zero truncation.

Enums§

ImeiWrapperError
ServiceCheckError

Functions§

get_imei_info
Get the basic information about a device (make and model) using its IMEI. The IMEI is required to be a string because if it was a numerical type, leading zeroes would be truncated.
get_tac_info
Get the basic information about a device (make and model) using its TAC. The TAC is required to be a string because if it was a numerical type, leading zeroes would be truncated. Though almost all TACs start with 35 for the reporting body associated with the IMEI, the first two digits must be included because they are technically still part of the TAC. The call to the IMEI.info API used here is the same as in get_imei_info, it simply uses the TAC to generate a generic IMEI to be checked.