Struct bufkit_data::SiteInfo
source · [−]pub struct SiteInfo {
pub station_num: StationNumber,
pub name: Option<String>,
pub notes: Option<String>,
pub state: Option<StateProv>,
pub time_zone: Option<FixedOffset>,
}Expand description
Description of a site with a sounding.
Fields
station_num: StationNumberStation 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
Implementations
sourceimpl SiteInfo
impl SiteInfo
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. Also, there is no requirement for a site to have an id.
sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get description of the site without all the meta-data details.
Trait Implementations
impl Eq for SiteInfo
impl StructuralEq for SiteInfo
impl StructuralPartialEq for SiteInfo
Auto Trait Implementations
impl RefUnwindSafe for SiteInfo
impl Send for SiteInfo
impl Sync for SiteInfo
impl Unpin for SiteInfo
impl UnwindSafe for SiteInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more