pub struct TagKey {
pub axis: TaxonomyAxis,
pub key: String,
}Expand description
(axis, key) half of an axis-prefixed tag. Used by Predicate
variants that match on the key without the value (e.g.
Predicate::Exists(TagKey)).
Display form is the same as the axis-presence tag:
<axis>.<key> (e.g. hardware.gpu for
TagKey { axis: Hardware, key: "gpu" }).
Fields§
§axis: TaxonomyAxisTaxonomy axis the key belongs to.
key: StringKey portion after the <axis>. prefix (e.g. gpu.vram_gb).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TagKey
impl<'de> Deserialize<'de> for TagKey
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TagKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TagKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TagKey
Source§impl Ord for TagKey
impl Ord for TagKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for TagKey
impl PartialOrd for TagKey
Source§impl Serialize for TagKey
impl Serialize for TagKey
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TagKey
Auto Trait Implementations§
impl Freeze for TagKey
impl RefUnwindSafe for TagKey
impl Send for TagKey
impl Sync for TagKey
impl Unpin for TagKey
impl UnsafeUnpin for TagKey
impl UnwindSafe for TagKey
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> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.