[][src]Struct bufkit_data::SiteInfo

pub struct SiteInfo {
    pub station_num: StationNumber,
    pub name: Option<String>,
    pub notes: Option<String>,
    pub state: Option<StateProv>,
    pub time_zone: Option<FixedOffset>,
    pub auto_download: bool,
}

Description of a site with a sounding.

Fields

station_num: StationNumber

Station number, this should be unique to the site. Site ids sometimes change around.

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.

time_zone: Option<FixedOffset>

Time zone information

auto_download: bool

Mark this site for automatic updates/downloads

Implementations

impl SiteInfo[src]

pub fn incomplete(&self) -> bool[src]

Return true if there is any missing data. It ignores the notes field since this is only rarely used. Also, there is no requirement for a site to have an id.

pub fn description(&self) -> String[src]

Get description of the site without all the meta-data details.

Trait Implementations

impl Clone for SiteInfo[src]

impl Debug for SiteInfo[src]

impl Default for SiteInfo[src]

impl Display for SiteInfo[src]

impl Eq for SiteInfo[src]

impl Hash for SiteInfo[src]

impl PartialEq<SiteInfo> for SiteInfo[src]

impl StructuralEq for SiteInfo[src]

impl StructuralPartialEq for SiteInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.