#[non_exhaustive]pub struct FlatCluster {
pub id: ClusterId,
pub parent_id: Option<ClusterId>,
pub label: String,
pub axis: String,
pub value: Value,
pub total: u64,
pub score_min: Option<f64>,
pub score_max: Option<f64>,
}Expand description
Flat cluster form (§7.1).
Equivalent in content to Cluster but with parent_id replacing
the recursive clusters array.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: ClusterIdCluster id from the root to this cluster.
parent_id: Option<ClusterId>Parent id, or None for top-level clusters.
label: StringHuman-readable label.
axis: StringField path for this cluster’s axis.
value: ValueRaw value behind this cluster.
total: u64Number of input items inside this cluster (recursively).
score_min: Option<f64>Minimum score within this cluster, when a score path is in use.
score_max: Option<f64>Maximum score within this cluster, when a score path is in use.
Trait Implementations§
Source§impl Clone for FlatCluster
impl Clone for FlatCluster
Source§fn clone(&self) -> FlatCluster
fn clone(&self) -> FlatCluster
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 FlatCluster
impl Debug for FlatCluster
Source§impl<'de> Deserialize<'de> for FlatCluster
impl<'de> Deserialize<'de> for FlatCluster
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 FlatCluster
impl PartialEq for FlatCluster
Source§impl Serialize for FlatCluster
impl Serialize for FlatCluster
impl StructuralPartialEq for FlatCluster
Auto Trait Implementations§
impl Freeze for FlatCluster
impl RefUnwindSafe for FlatCluster
impl Send for FlatCluster
impl Sync for FlatCluster
impl Unpin for FlatCluster
impl UnsafeUnpin for FlatCluster
impl UnwindSafe for FlatCluster
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