[−][src]Struct bufkit_data::SiteInfo
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
auto_download: boolMark 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]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<SiteInfo> for SiteInfo[src]
impl StructuralEq for SiteInfo[src]
impl StructuralPartialEq for SiteInfo[src]
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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,