blob: f5128f053c375125e8bd0bfc5b9f16531e4cac14 [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
#![allow(
deprecated, // FIDL Impl struct pattern is referenced internally
unused_parens, // one-element-tuple-case is not a tuple
unused_mut, // not all args require mutation, but many do
nonstandard_style, // auto-caps does its best, but is not always successful
)]
#[allow(unused_imports)]
use fidl::{fidl_bits, fidl_empty_struct, fidl_enum, fidl_struct, fidl_table, fidl_xunion};
#[cfg(target_os = "fuchsia")]
#[allow(unused_imports)]
use fuchsia_zircon as zx;
#[allow(unused_imports)]
use fuchsia_zircon_status as zx_status;
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct ByteAndBytes {
pub single_byte: u8,
pub many_bytes: Vec<u8>,
pub only_one_k_bytes: Vec<u8>,
pub opt_only_one_k_bytes: Option<Vec<u8>>,
}
fidl_struct! {
name: ByteAndBytes,
members: [
single_byte {
ty: u8,
offset_v1: 0,
},
many_bytes {
ty: Vec<u8>,
offset_v1: 8,
},
only_one_k_bytes {
ty: Vec<u8>,
offset_v1: 24,
},
opt_only_one_k_bytes {
ty: Option<Vec<u8>>,
offset_v1: 40,
},
],
size_v1: 56,
align_v1: 8,
}