pub struct SearchParams {
pub query: String,
pub location: Option<(f32, f32)>,
pub country_names: bool,
pub country_code: Option<CountryCode>,
pub seen: Option<u32>,
}Expand description
Parameters for the search endpoint.
Fields§
§query: StringSearch query.
See the PVOutput docs for further information.
location: Option<(f32, f32)>Latitude and longitude to use as the point of origin for distance searches.
country_names: boolReturn country names alongside postcodes.
country_code: Option<CountryCode>Filter results by country code.
Required for postcode distance searches (e.g. q=4000 20km)
seen: Option<u32>Only return systems that were last seen this number of days ago or fewer.
Implementations§
Trait Implementations§
Source§impl Clone for SearchParams
impl Clone for SearchParams
Source§fn clone(&self) -> SearchParams
fn clone(&self) -> SearchParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SearchParams
impl Debug for SearchParams
Auto Trait Implementations§
impl Freeze for SearchParams
impl RefUnwindSafe for SearchParams
impl Send for SearchParams
impl Sync for SearchParams
impl Unpin for SearchParams
impl UnwindSafe for SearchParams
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