pub struct ContextAttributes {
pub numeric: Arc<HashMap<Str, NumericAttribute>>,
pub categorical: Arc<HashMap<Str, CategoricalAttribute>>,
}Expand description
ContextAttributes are subject or action attributes split by their semantics.
Fields§
§numeric: Arc<HashMap<Str, NumericAttribute>>Numeric attributes are quantitative (e.g., real numbers) and define a scale.
Not all numbers are numeric attributes. If a number is used to represent an enumeration or on/off values, it is a categorical attribute.
categorical: Arc<HashMap<Str, CategoricalAttribute>>Categorical attributes are attributes that have a finite set of values that are not directly comparable (i.e., enumeration).
Implementations§
Source§impl ContextAttributes
impl ContextAttributes
Sourcepub fn to_generic_attributes(&self) -> Attributes
pub fn to_generic_attributes(&self) -> Attributes
Convert contextual attributes to generic Attributes.
Trait Implementations§
Source§impl Clone for ContextAttributes
impl Clone for ContextAttributes
Source§fn clone(&self) -> ContextAttributes
fn clone(&self) -> ContextAttributes
Returns a copy of the value. Read more
1.0.0 · 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 ContextAttributes
impl Debug for ContextAttributes
Source§impl Default for ContextAttributes
impl Default for ContextAttributes
Source§fn default() -> ContextAttributes
fn default() -> ContextAttributes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextAttributes
impl<'de> Deserialize<'de> for ContextAttributes
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 From<HashMap<Str, AttributeValue>> for ContextAttributes
impl From<HashMap<Str, AttributeValue>> for ContextAttributes
Source§fn from(value: Attributes) -> Self
fn from(value: Attributes) -> Self
Converts to this type from the input type.
Source§impl<K, V> FromIterator<(K, V)> for ContextAttributes
impl<K, V> FromIterator<(K, V)> for ContextAttributes
Auto Trait Implementations§
impl Freeze for ContextAttributes
impl RefUnwindSafe for ContextAttributes
impl Send for ContextAttributes
impl Sync for ContextAttributes
impl Unpin for ContextAttributes
impl UnwindSafe for ContextAttributes
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