#[non_exhaustive]
pub struct NumberValidateResponse {
Show 14 fields pub carrier: Option<String>, pub city: Option<String>, pub cleansed_phone_number_e164: Option<String>, pub cleansed_phone_number_national: Option<String>, pub country: Option<String>, pub country_code_iso2: Option<String>, pub country_code_numeric: Option<String>, pub county: Option<String>, pub original_country_code_iso2: Option<String>, pub original_phone_number: Option<String>, pub phone_type: Option<String>, pub phone_type_code: i32, pub timezone: Option<String>, pub zip_code: Option<String>,
}
Expand description

Provides information about a phone number.

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
carrier: Option<String>

The carrier or service provider that the phone number is currently registered with. In some countries and regions, this value may be the carrier or service provider that the phone number was originally registered with.

city: Option<String>

The name of the city where the phone number was originally registered.

cleansed_phone_number_e164: Option<String>

The cleansed phone number, in E.164 format, for the location where the phone number was originally registered.

cleansed_phone_number_national: Option<String>

The cleansed phone number, in the format for the location where the phone number was originally registered.

country: Option<String>

The name of the country or region where the phone number was originally registered.

country_code_iso2: Option<String>

The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was originally registered.

country_code_numeric: Option<String>

The numeric code for the country or region where the phone number was originally registered.

county: Option<String>

The name of the county where the phone number was originally registered.

original_country_code_iso2: Option<String>

The two-character code, in ISO 3166-1 alpha-2 format, that was sent in the request body.

original_phone_number: Option<String>

The phone number that was sent in the request body.

phone_type: Option<String>

The description of the phone type. Valid values are: MOBILE, LANDLINE, VOIP, INVALID, PREPAID, and OTHER.

phone_type_code: i32

The phone type, represented by an integer. Valid values are: 0 (mobile), 1 (landline), 2 (VoIP), 3 (invalid), 4 (other), and 5 (prepaid).

timezone: Option<String>

The time zone for the location where the phone number was originally registered.

zip_code: Option<String>

The postal or ZIP code for the location where the phone number was originally registered.

Implementations

The carrier or service provider that the phone number is currently registered with. In some countries and regions, this value may be the carrier or service provider that the phone number was originally registered with.

The name of the city where the phone number was originally registered.

The cleansed phone number, in E.164 format, for the location where the phone number was originally registered.

The cleansed phone number, in the format for the location where the phone number was originally registered.

The name of the country or region where the phone number was originally registered.

The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was originally registered.

The numeric code for the country or region where the phone number was originally registered.

The name of the county where the phone number was originally registered.

The two-character code, in ISO 3166-1 alpha-2 format, that was sent in the request body.

The phone number that was sent in the request body.

The description of the phone type. Valid values are: MOBILE, LANDLINE, VOIP, INVALID, PREPAID, and OTHER.

The phone type, represented by an integer. Valid values are: 0 (mobile), 1 (landline), 2 (VoIP), 3 (invalid), 4 (other), and 5 (prepaid).

The time zone for the location where the phone number was originally registered.

The postal or ZIP code for the location where the phone number was originally registered.

Creates a new builder-style object to manufacture NumberValidateResponse

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more