1 use crate::OneofFull;
2 
3 #[doc(hidden)]
4 pub struct GeneratedOneofDescriptorData {
5     pub(crate) name: &'static str,
6 }
7 
8 impl GeneratedOneofDescriptorData {
9     #[doc(hidden)]
new<O>(name: &'static str) -> GeneratedOneofDescriptorData where O: OneofFull,10     pub fn new<O>(name: &'static str) -> GeneratedOneofDescriptorData
11     where
12         O: OneofFull,
13     {
14         GeneratedOneofDescriptorData { name }
15     }
16 }
17 
18 #[derive(Debug)]
19 pub(crate) struct GeneratedOneofDescriptor {}
20 
21 impl GeneratedOneofDescriptor {
22     /// Synthetic oneof for proto3 optional field.
new_synthetic() -> GeneratedOneofDescriptor23     pub(crate) fn new_synthetic() -> GeneratedOneofDescriptor {
24         GeneratedOneofDescriptor {}
25     }
26 
new(_data: &GeneratedOneofDescriptorData) -> GeneratedOneofDescriptor27     pub(crate) fn new(_data: &GeneratedOneofDescriptorData) -> GeneratedOneofDescriptor {
28         GeneratedOneofDescriptor {}
29     }
30 }
31