pub enum ImportMode {
Minimal,
Full,
Selective(Vec<String>),
}Expand description
Import mode controls which record types are imported.
Variants§
Minimal
Import only HD + EN + AM (sufficient for callsign/FRN/name lookups)
Full
Import all record types
Selective(Vec<String>)
Import specific record types
Implementations§
Source§impl ImportMode
impl ImportMode
Sourcepub const MINIMAL_TYPES: &'static [&'static str]
pub const MINIMAL_TYPES: &'static [&'static str]
Record types to import for minimal mode (for amateur service).
Sourcepub fn should_import(&self, record_type: &str) -> bool
pub fn should_import(&self, record_type: &str) -> bool
Check if a record type should be imported.
Sourcepub fn should_import_file(&self, filename: &str) -> bool
pub fn should_import_file(&self, filename: &str) -> bool
Check if a file should be imported based on its name.
Trait Implementations§
Source§impl Clone for ImportMode
impl Clone for ImportMode
Source§fn clone(&self) -> ImportMode
fn clone(&self) -> ImportMode
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 ImportMode
impl Debug for ImportMode
Source§impl Default for ImportMode
impl Default for ImportMode
Source§fn default() -> ImportMode
fn default() -> ImportMode
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ImportMode
impl RefUnwindSafe for ImportMode
impl Send for ImportMode
impl Sync for ImportMode
impl Unpin for ImportMode
impl UnsafeUnpin for ImportMode
impl UnwindSafe for ImportMode
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