Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub enum DataPanelMessage {
ClearLayout,

PushToElementPath {
index: usize,
step: PathStep,
},
TruncateElementPath {
len: usize,
Expand All @@ -23,6 +23,14 @@ pub enum DataPanelMessage {
},
}

/// One hop in the breadcrumb path through nested data the data panel is displaying.
/// Drilling into a row's element produces an `Element` step; drilling into one of a row's attributes produces an `Attribute` step.
#[derive(PartialEq, Eq, Clone, Debug, serde::Serialize, serde::Deserialize)]
pub enum PathStep {
Element(usize),
Attribute { row: usize, key: String },
}

#[derive(PartialEq, Eq, Clone, Copy, Default, Debug, serde::Serialize, serde::Deserialize)]
pub enum VectorTableTab {
#[default]
Expand Down
Loading
Loading