ros2_interfaces_humble/test_interface_files/msg/
multi_nested.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct MultiNested {
5    pub array_of_arrays: [crate::test_interface_files::msg::Arrays; 3],
6    pub array_of_bounded_sequences: [crate::test_interface_files::msg::BoundedSequences; 3],
7    pub array_of_unbounded_sequences: [crate::test_interface_files::msg::UnboundedSequences; 3],
8    pub bounded_sequence_of_arrays: Vec<crate::test_interface_files::msg::Arrays>,
9    pub bounded_sequence_of_bounded_sequences: Vec<crate::test_interface_files::msg::BoundedSequences>,
10    pub bounded_sequence_of_unbounded_sequences: Vec<crate::test_interface_files::msg::UnboundedSequences>,
11    pub unbounded_sequence_of_arrays: Vec<crate::test_interface_files::msg::Arrays>,
12    pub unbounded_sequence_of_bounded_sequences: Vec<crate::test_interface_files::msg::BoundedSequences>,
13    pub unbounded_sequence_of_unbounded_sequences: Vec<crate::test_interface_files::msg::UnboundedSequences>,
14}
15
16impl Default for MultiNested {
17    fn default() -> Self {
18        MultiNested {
19            array_of_arrays: core::array::from_fn(|_| crate::test_interface_files::msg::Arrays::default()),
20            array_of_bounded_sequences: core::array::from_fn(|_| crate::test_interface_files::msg::BoundedSequences::default()),
21            array_of_unbounded_sequences: core::array::from_fn(|_| crate::test_interface_files::msg::UnboundedSequences::default()),
22            bounded_sequence_of_arrays: Vec::new(),
23            bounded_sequence_of_bounded_sequences: Vec::new(),
24            bounded_sequence_of_unbounded_sequences: Vec::new(),
25            unbounded_sequence_of_arrays: Vec::new(),
26            unbounded_sequence_of_bounded_sequences: Vec::new(),
27            unbounded_sequence_of_unbounded_sequences: Vec::new(),
28        }
29    }
30}
31
32impl ros2_client::Message for MultiNested {}