| // 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, PartialEq)] |
| pub struct ExampleOfUseOfAliases { |
| pub field_of_u32: u32, |
| pub field_of_vec_at_most_five_of_string: Vec<String>, |
| pub field_of_vec_at_most_five_of_uint32: Vec<u32>, |
| pub field_of_vec_of_strings: Vec<String>, |
| pub field_of_vec_of_strings_at_most_nine: Vec<String>, |
| pub field_of_vec_of_strings_at_most_5: Vec<String>, |
| pub field_of_vec_at_most_5_of_reference_me: Vec<fidl_someotherlibrary::ReferenceMe>, |
| pub field_of_channel: fidl::Handle, |
| pub field_of_client_end: fidl::Handle, |
| pub field_of_nullable_client_end: Option<fidl::Handle>, |
| } |
| |
| fidl_struct! { |
| name: ExampleOfUseOfAliases, |
| members: [ |
| field_of_u32 { |
| ty: u32, |
| offset_v1: 0, |
| }, |
| field_of_vec_at_most_five_of_string { |
| ty: Vec<String>, |
| offset_v1: 8, |
| }, |
| field_of_vec_at_most_five_of_uint32 { |
| ty: Vec<u32>, |
| offset_v1: 24, |
| }, |
| field_of_vec_of_strings { |
| ty: Vec<String>, |
| offset_v1: 40, |
| }, |
| field_of_vec_of_strings_at_most_nine { |
| ty: Vec<String>, |
| offset_v1: 56, |
| }, |
| field_of_vec_of_strings_at_most_5 { |
| ty: Vec<String>, |
| offset_v1: 72, |
| }, |
| field_of_vec_at_most_5_of_reference_me { |
| ty: Vec<fidl_someotherlibrary::ReferenceMe>, |
| offset_v1: 88, |
| }, |
| field_of_channel { |
| ty: fidl::Handle, |
| offset_v1: 104, |
| }, |
| field_of_client_end { |
| ty: fidl::Handle, |
| offset_v1: 108, |
| }, |
| field_of_nullable_client_end { |
| ty: Option<fidl::Handle>, |
| offset_v1: 112, |
| }, |
| ], |
| size_v1: 120, |
| align_v1: 8, |
| } |