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§
Source§impl 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 StructuralPartialEq for SiteInfo
Auto Trait Implementations§
impl Freeze for SiteInfo
impl RefUnwindSafe for SiteInfo
impl Send for SiteInfo
impl Sync for SiteInfo
impl Unpin for SiteInfo
impl UnwindSafe for SiteInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more