pub struct FindQuery {
pub biome: Option<Biome>,
pub infested: Option<bool>,
pub within_ly: Option<f64>,
pub nearest: Option<usize>,
pub name_pattern: Option<String>,
pub discoverer: Option<String>,
pub named_only: bool,
pub from: ReferencePoint,
}Expand description
Parameters for a planet/system search.
Fields§
§biome: Option<Biome>Filter by biome type.
infested: Option<bool>Filter by infested flag.
within_ly: Option<f64>Only include results within this radius (light-years).
nearest: Option<usize>Return at most this many results (nearest first).
name_pattern: Option<String>Filter by planet/system name pattern (case-insensitive substring).
discoverer: Option<String>Filter by discoverer username (case-insensitive substring).
named_only: boolOnly include named planets/systems.
from: ReferencePointReference point for distance calculations.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FindQuery
impl RefUnwindSafe for FindQuery
impl Send for FindQuery
impl Sync for FindQuery
impl Unpin for FindQuery
impl UnsafeUnpin for FindQuery
impl UnwindSafe for FindQuery
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