ros2_interfaces_iron/mavros_msgs/msg/
file_entry.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct FileEntry {
5 pub name: ::std::string::String,
6 #[serde(rename = "type")] pub type_: u8,
7 pub size: u64,
8}
9
10impl FileEntry {
11 pub const TYPE_FILE: u8 = 0;
12 pub const TYPE_DIRECTORY: u8 = 1;
13}
14
15impl Default for FileEntry {
16 fn default() -> Self {
17 FileEntry {
18 name: ::std::string::String::new(),
19 type_: 0,
20 size: 0,
21 }
22 }
23}
24
25impl ros2_client::Message for FileEntry {}