pub struct RegionLookup {
pub latitude: f64,
pub longitude: f64,
pub matches: Vec<RegionMatch>,
pub radio_regions: Vec<RadioRegion>,
pub suggested_default_region: Option<RadioRegion>,
pub dataset_version: String,
}Expand description
The result of a lookup.
Fields§
§latitude: f64Latitude that was looked up.
longitude: f64Longitude that was looked up.
matches: Vec<RegionMatch>Every semantic match, in presentation order. Empty unless the lookup asked for detail.
radio_regions: Vec<RadioRegion>The deduplicated list suitable for a repeater’s region filter.
suggested_default_region: Option<RadioRegion>A narrow region suggested for the packet default tag, if any applies.
dataset_version: StringThe data release this answer came from.
Trait Implementations§
Source§impl Clone for RegionLookup
impl Clone for RegionLookup
Source§fn clone(&self) -> RegionLookup
fn clone(&self) -> RegionLookup
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegionLookup
impl Debug for RegionLookup
Source§impl PartialEq for RegionLookup
impl PartialEq for RegionLookup
impl StructuralPartialEq for RegionLookup
Auto Trait Implementations§
impl Freeze for RegionLookup
impl RefUnwindSafe for RegionLookup
impl Send for RegionLookup
impl Sync for RegionLookup
impl Unpin for RegionLookup
impl UnwindSafe for RegionLookup
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)