Skip to content

Commit

Permalink
[dfv1] add ctor to datatypes::ComponentColumnSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Sep 27, 2024
1 parent b2e3ba3 commit 9fd7cd0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ use re_types_core::ComponentName;
impl super::ComponentColumnSelector {
/// Create a [`Self`] from an [`EntityPath`] and a [`ComponentName`].
pub fn new(entity_path: &EntityPath, component_name: ComponentName) -> Self {
crate::blueprint::datatypes::ComponentColumnSelector {
entity_path: entity_path.into(),
component: component_name.as_str().into(),
}
.into()
crate::blueprint::datatypes::ComponentColumnSelector::new(entity_path, component_name)
.into()
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
use re_log_types::EntityPath;
use re_types_core::ComponentName;

impl super::ComponentColumnSelector {
/// Create a [`Self`] from an [`EntityPath`] and a [`ComponentName`].
pub fn new(entity_path: &EntityPath, component_name: ComponentName) -> Self {
Self {
entity_path: entity_path.into(),
component: component_name.as_str().into(),
}
}
}
1 change: 1 addition & 0 deletions crates/store/re_types/src/blueprint/datatypes/mod.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9fd7cd0

Please sign in to comment.