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