#[repr(u32)]pub enum Region {
Show 36 variants
Amsterdam = 1_634_562_816,
Ashburn = 1_767_990_272,
Atlanta = 1_635_019_776,
Bogota = 1_651_468_032,
Boston = 1_651_471_104,
Bucharest = 1_869_901_824,
Chennai = 1_835_098_368,
Chicago = 1_869_767_680,
Dallas = 1_684_436_736,
Denver = 1_684_368_896,
Ezeiza = 1_702_520_064,
Frankfurt = 1_718_771_968,
Guadalajara = 1_734_634_496,
HongKong = 1_751_869_184,
Johannesburg = 1_785_618_944,
London = 1_818_784_256,
LosAngeles = 1_818_327_040,
Madrid = 1_835_099_136,
Miami = 1_835_622_656,
Montreal = 2_037_738_496,
Mumbai = 1_651_469_568,
Paris = 1_667_524_352,
Phoenix = 1_885_894_656,
Queretaro = 1_903_324_928,
RioDeJaneiro = 1_734_960_896,
SanJose = 1_936_352_000,
Santiago = 1_935_895_552,
SaoPaulo = 1_735_554_304,
Seattle = 1_936_023_808,
Secaucus = 1_702_326_784,
Singapore = 1_936_289_280,
Stockholm = 1_634_889_216,
Sydney = 1_937_335_296,
Tokyo = 1_852_994_560,
Toronto = 2_038_004_224,
Warsaw = 2_002_876_160,
}regions only.Expand description
Information about the region is available through the associated
RegionDetails, including the City where the region is located.
use flytrap::Region;
let chicago: Region = "ord".parse()?;
assert_eq!(chicago.name, "Chicago, Illinois (US)");
assert_eq!(chicago.city.name, "Chicago");
assert_eq!(chicago.city.country, "US");
assert!(chicago.city.geo.x() < Region::Amsterdam.city.geo.x());
assert_eq!(chicago.to_string(), "ord");
assert_eq!(mem::size_of::<Region>(), 4);Variants§
Amsterdam = 1_634_562_816
The Amsterdam, Netherlands Fly.io region (ams).
Ashburn = 1_767_990_272
The Ashburn, Virginia (US) Fly.io region (iad).
Atlanta = 1_635_019_776
The Atlanta, Georgia (US) Fly.io region (atl).
Bogota = 1_651_468_032
The Bogotá, Colombia Fly.io region (bog).
Boston = 1_651_471_104
The Boston, Massachusetts (US) Fly.io region (bos).
Bucharest = 1_869_901_824
The Bucharest, Romania Fly.io region (otp).
Chennai = 1_835_098_368
The Chennai (Madras), India Fly.io region (maa).
Chicago = 1_869_767_680
The Chicago, Illinois (US) Fly.io region (ord).
Dallas = 1_684_436_736
The Dallas, Texas (US) Fly.io region (dfw).
Denver = 1_684_368_896
The Denver, Colorado (US) Fly.io region (den).
Ezeiza = 1_702_520_064
The Ezeiza, Argentina Fly.io region (eze).
Frankfurt = 1_718_771_968
The Frankfurt, Germany Fly.io region (fra).
Guadalajara = 1_734_634_496
The Guadalajara, Mexico Fly.io region (gdl).
HongKong = 1_751_869_184
The Hong Kong, Hong Kong Fly.io region (hkg).
Johannesburg = 1_785_618_944
The Johannesburg, South Africa Fly.io region (jnb).
London = 1_818_784_256
The London, United Kingdom Fly.io region (lhr).
LosAngeles = 1_818_327_040
The Los Angeles, California (US) Fly.io region (lax).
Madrid = 1_835_099_136
The Madrid, Spain Fly.io region (mad).
Miami = 1_835_622_656
The Miami, Florida (US) Fly.io region (mia).
Montreal = 2_037_738_496
The Montreal, Canada Fly.io region (yul).
Mumbai = 1_651_469_568
The Mumbai, India Fly.io region (bom).
Paris = 1_667_524_352
The Paris, France Fly.io region (cdg).
Phoenix = 1_885_894_656
The Phoenix, Arizona (US) Fly.io region (phx).
Queretaro = 1_903_324_928
The Querétaro, Mexico Fly.io region (qro).
RioDeJaneiro = 1_734_960_896
The Rio de Janeiro, Brazil Fly.io region (gig).
SanJose = 1_936_352_000
The San Jose, California (US) Fly.io region (sjc).
Santiago = 1_935_895_552
The Santiago, Chile Fly.io region (scl).
SaoPaulo = 1_735_554_304
The Sao Paulo, Brazil Fly.io region (gru).
Seattle = 1_936_023_808
The Seattle, Washington (US) Fly.io region (sea).
Secaucus = 1_702_326_784
The Secaucus, NJ (US) Fly.io region (ewr).
Singapore = 1_936_289_280
The Singapore, Singapore Fly.io region (sin).
Stockholm = 1_634_889_216
The Stockholm, Sweden Fly.io region (arn).
Sydney = 1_937_335_296
The Sydney, Australia Fly.io region (syd).
Tokyo = 1_852_994_560
The Tokyo, Japan Fly.io region (nrt).
Toronto = 2_038_004_224
The Toronto, Canada Fly.io region (yyz).
Warsaw = 2_002_876_160
The Warsaw, Poland Fly.io region (waw).
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
impl<'de> Deserialize<'de> for Region
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl From<Region> for RegionCode
impl From<Region> for RegionCode
source§impl Ord for Region
impl Ord for Region
source§impl PartialEq for Region
impl PartialEq for Region
source§impl PartialOrd for Region
impl PartialOrd for Region
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more