pub struct Number {
pub capable: Option<Vec<String>>,
pub country: Option<String>,
pub currency: Option<String>,
pub e164: Option<String>,
pub id: Option<String>,
pub monthly: Option<i32>,
pub org: Option<String>,
pub type: Option<String>,
}Fields§
§capable: Option<Vec<String>>Capable is what the number can carry: any of "voice", "sms", "mms", "fax". A number missing "sms" cannot send one no matter what this platform does.
country: Option<String>Country is the ISO 3166-1 alpha-2 code the number is issued under. Numbering is national, so this is what makes a search answerable at all.
currency: Option<String>Currency is the ISO 4217 code Monthly is denominated in. Without it the number beside it means nothing, so the two are always read together.
e164: Option<String>E164 is the number in E.164: a leading + and digits only, no spaces or dashes. That is what a carrier accepts and what a search result must be bought by.
id: Option<String>ID is the carrier’s handle for the number, and the id every route here addresses it by. It is not the number itself — see E164.
monthly: Option<i32>Monthly is the recurring rental in the MINOR unit of Currency (cents for USD), exactly as the carrier quoted it. It is a price, not a charge: nothing is billed by this field.
org: Option<String>Org is the tenant holding the number. A search result carries none — nobody holds it yet — which is how an available number is told from a held one.
type: Option<String>Type is what kind of number it is: "local", "national", "tollfree" or "mobile". It decides both price and what a carrier will let it originate.