pub struct Interval {
pub from: f64,
pub to: f64,
pub colour: Option<String>,
pub unit: String,
pub unit_uri: Option<String>,
}Expand description
A stratigraphic interval along a well, in MD.
Fields§
§from: f64Where it starts, MD.
to: f64Where it ends, MD.
colour: Option<String>Its colour, #rrggbb or #rrggbbaa, resolved by the package’s cascade -
None when the package gives none (drawn in the well’s colour, never
left transparent).
unit: StringThe unit’s title.
unit_uri: Option<String>The unit’s full uri (uuid and version, as the package holds it) -
what lets a view say the colour of the unit after the catalogue was made
(View::unit_colours). None when the unit cannot be named without a
guess (two units of one title and colour in the frame, or one the package
does not hold): its baked colour is then all there is.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Interval
impl<'de> Deserialize<'de> for Interval
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Interval
Auto Trait Implementations§
impl Freeze for Interval
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnsafeUnpin for Interval
impl UnwindSafe for Interval
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