Struct bufkit_data::Site [−][src]
pub struct Site { pub id: String, pub name: Option<String>, pub notes: Option<String>, pub state: Option<StateProv>, pub auto_download: bool, }
Description of a site with a sounding.
Fields
id: String
Site 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: bool
For programs that download files, this allows marking some sites for automatic download without further specification.
Methods
impl Site
[src]
impl Site
pub fn incomplete(&self) -> bool
[src]
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 Debug for Site
[src]
impl Debug for Site
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Site
[src]
impl PartialEq for Site