#[repr(C)]pub struct GeoInfo {
pub country_code: [u8; 2],
pub is_eu: bool,
pub region: u8,
}Fields§
§country_code: [u8; 2]§is_eu: bool§region: u8Implementations§
Source§impl GeoInfo
impl GeoInfo
pub fn country_code_str(&self) -> &str
pub fn region_enum(&self) -> Region
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GeoInfo
impl RefUnwindSafe for GeoInfo
impl Send for GeoInfo
impl Sync for GeoInfo
impl Unpin for GeoInfo
impl UnwindSafe for GeoInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more