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: 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.

Implementations

Return true if there is any missing data. It ignores the notes field since this is only rarely used.

Trait Implementations

Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.