pub enum GroupBy {
Class,
State,
Region,
Publisher,
TagStem {
prefix: String,
},
TagValue {
axis: TaxonomyAxis,
key: String,
},
}Expand description
Bucket-key derivation — for each matching entry, decides which
bucket(s) it contributes to. Most variants produce one bucket per
entry; TagStem and TagValue can produce zero, one, or many
(one per matching tag on the entry).
Variants§
Class
Each entry’s class_hash, rendered as "0x{:x}".
State
Each entry’s state ("idle" / "busy" / "reserved" /
"faulty").
Region
Each entry’s region (or "(none)" for unset).
Publisher
Each entry’s publisher node_id, rendered as "0x{:x}".
TagStem
Bucket by tag stem. For each tag matching <prefix> or
<prefix>.<rest>, the bucket key is the next dotted segment
after the prefix. TagStem { prefix: "hardware.gpu" } over a
tag set containing "hardware.gpu.h100" and
"hardware.gpu.a100" produces buckets "h100" and "a100".
Bare "hardware.gpu" itself produces the bucket "(present)"
so presence-only tags don’t disappear.
TagValue
Bucket by the value of a specific axis-key. For each
AxisValue { axis, key, value } tag on the entry matching the
requested (axis, key), the bucket key is the captured value.
Fields
axis: TaxonomyAxisTaxonomy axis the tag must live in.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GroupBy
impl<'de> Deserialize<'de> for GroupBy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GroupBy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GroupBy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for GroupBy
Source§impl Serialize for GroupBy
impl Serialize for GroupBy
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,
impl StructuralPartialEq for GroupBy
Auto Trait Implementations§
impl Freeze for GroupBy
impl RefUnwindSafe for GroupBy
impl Send for GroupBy
impl Sync for GroupBy
impl Unpin for GroupBy
impl UnsafeUnpin for GroupBy
impl UnwindSafe for GroupBy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.