Struct bufkit_data::Site
source · pub struct Site {
pub id: String,
pub name: Option<String>,
pub notes: Option<String>,
pub state: Option<StateProv>,
pub auto_download: bool,
}Expand description
Description of a site with a sounding.
Fields
id: StringSite id, usually a 3 or 4 letter identifier (e.g. kord katl ksea).
name: Option<String>A longer, more human readable name.
notes: Option<String>Any relevant notes about the site.
state: Option<StateProv>The state or providence where this location is located. This allows querying sites by what state or providence they are in.
auto_download: boolFor programs that download files, this allows marking some sites for automatic download without further specification.
Implementations
sourceimpl Site
impl Site
sourcepub fn incomplete(&self) -> bool
pub fn incomplete(&self) -> bool
Return true if there is any missing data. It ignores the notes field since this is only rarely used.
Trait Implementations
impl StructuralPartialEq for Site
Auto Trait Implementations
impl RefUnwindSafe for Site
impl Send for Site
impl Sync for Site
impl Unpin for Site
impl UnwindSafe for Site
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more