pub struct CategoryItem {
pub value: i64,
pub label: String,
pub severity: Option<CategorySeverity>,
}Expand description
One discrete state of a RampHint::Categorical variable.
value is the number the engine stores in the result series for this
state; label is engine-authored display text.
Fields§
§value: i64The stored series value representing this state.
label: StringHuman-facing label for this state.
severity: Option<CategorySeverity>Whether this state is unremarkable, worth attention, or wrong.
None where the states carry no such judgement — a partition like a
land-use class or a material has no abnormal member, and must not be
made to invent one.
Trait Implementations§
Source§impl Clone for CategoryItem
impl Clone for CategoryItem
Source§fn clone(&self) -> CategoryItem
fn clone(&self) -> CategoryItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CategoryItem
impl Debug for CategoryItem
Source§impl<'de> Deserialize<'de> for CategoryItem
impl<'de> Deserialize<'de> for CategoryItem
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
Source§impl PartialEq for CategoryItem
impl PartialEq for CategoryItem
Source§impl Serialize for CategoryItem
impl Serialize for CategoryItem
impl StructuralPartialEq for CategoryItem
Auto Trait Implementations§
impl Freeze for CategoryItem
impl RefUnwindSafe for CategoryItem
impl Send for CategoryItem
impl Sync for CategoryItem
impl Unpin for CategoryItem
impl UnsafeUnpin for CategoryItem
impl UnwindSafe for CategoryItem
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