re_types/blueprint/components/
filter_is_not_null_ext.rs

1use re_log_types::EntityPath;
2
3use super::FilterIsNotNull;
4
5impl FilterIsNotNull {
6    /// Create a new [`Self`].
7    pub fn new(active: bool, entity_path: &EntityPath, column_name: String) -> Self {
8        let datatype = crate::blueprint::datatypes::FilterIsNotNull {
9            active: active.into(),
10            column: crate::blueprint::datatypes::ComponentColumnSelector::new(
11                entity_path,
12                column_name,
13            ),
14        };
15
16        Self(datatype)
17    }
18
19    /// Is the filter active?
20    pub fn active(&self) -> bool {
21        self.active.into()
22    }
23
24    /// Entity path of the filter column.
25    pub fn entity_path(&self) -> EntityPath {
26        self.column.entity_path()
27    }
28
29    /// Component column selector of the filter column
30    pub fn column_selector(&self) -> re_sorbet::ComponentColumnSelector {
31        self.column.column_selector()
32    }
33}