re_types/blueprint/views/
dataframe_view.rs

1// DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/rust/api.rs
2// Based on "crates/store/re_types/definitions/rerun/blueprint/views/dataframe.fbs".
3
4#![allow(unused_braces)]
5#![allow(unused_imports)]
6#![allow(unused_parens)]
7#![allow(clippy::allow_attributes)]
8#![allow(clippy::clone_on_copy)]
9#![allow(clippy::cloned_instead_of_copied)]
10#![allow(clippy::map_flatten)]
11#![allow(clippy::needless_question_mark)]
12#![allow(clippy::new_without_default)]
13#![allow(clippy::redundant_closure)]
14#![allow(clippy::too_many_arguments)]
15#![allow(clippy::too_many_lines)]
16#![allow(clippy::wildcard_imports)]
17
18use ::re_types_core::SerializationResult;
19use ::re_types_core::try_serialize_field;
20use ::re_types_core::{ComponentBatch as _, SerializedComponentBatch};
21use ::re_types_core::{ComponentDescriptor, ComponentType};
22use ::re_types_core::{DeserializationError, DeserializationResult};
23
24/// **View**: A view to display any data in a tabular form.
25///
26/// Any data from the store can be shown, using a flexibly, user-configurable query.
27///
28/// ⚠️ **This type is _unstable_ and may change significantly in a way that the data won't be backwards compatible.**
29#[derive(Clone, Debug)]
30pub struct DataframeView {
31    /// Query of the dataframe.
32    pub query: crate::blueprint::archetypes::DataframeQuery,
33}
34
35impl ::re_types_core::View for DataframeView {
36    #[inline]
37    fn identifier() -> ::re_types_core::ViewClassIdentifier {
38        "Dataframe".into()
39    }
40}
41
42impl<T: Into<crate::blueprint::archetypes::DataframeQuery>> From<T> for DataframeView {
43    fn from(v: T) -> Self {
44        Self { query: v.into() }
45    }
46}
47
48impl std::borrow::Borrow<crate::blueprint::archetypes::DataframeQuery> for DataframeView {
49    #[inline]
50    fn borrow(&self) -> &crate::blueprint::archetypes::DataframeQuery {
51        &self.query
52    }
53}
54
55impl std::ops::Deref for DataframeView {
56    type Target = crate::blueprint::archetypes::DataframeQuery;
57
58    #[inline]
59    fn deref(&self) -> &crate::blueprint::archetypes::DataframeQuery {
60        &self.query
61    }
62}
63
64impl std::ops::DerefMut for DataframeView {
65    #[inline]
66    fn deref_mut(&mut self) -> &mut crate::blueprint::archetypes::DataframeQuery {
67        &mut self.query
68    }
69}
70
71impl ::re_byte_size::SizeBytes for DataframeView {
72    #[inline]
73    fn heap_size_bytes(&self) -> u64 {
74        self.query.heap_size_bytes()
75    }
76
77    #[inline]
78    fn is_pod() -> bool {
79        <crate::blueprint::archetypes::DataframeQuery>::is_pod()
80    }
81}