1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
pub mod serialization {
    pub use serialization::action_mapper_serde::*;

    mod action_mapper_serde {
        use std::collections::HashMap;


        #[allow(non_upper_case_globals,
                unused_attributes,
                unused_qualifications)]
        const _IMPL_SERIALIZE_FOR_ActionMapperSerde: () =
            {
                extern crate serde as _serde;
                #[automatically_derived]
                impl <'a> _serde::ser::Serialize for ActionMapperSerde<'a> {
                    fn serialize<__S>(&self, _serializer: &mut __S)
                     -> ::std::result::Result<(), __S::Error> where
                     __S: _serde::ser::Serializer {
                        let mut __serde_state =
                            try!(_serializer . serialize_struct (
                                 "ActionMapperSerde" , 0 + 1 ));
                        try!(_serializer . serialize_struct_elt (
                             & mut __serde_state , "action_map" , & self .
                             action_map ));
                        _serializer.serialize_struct_end(__serde_state)
                    }
                }
            };
        #[derive(PartialEq, Eq, Debug, Clone)]
        pub struct ActionMapperSerde<'a> {
            action_map: &'a Vec<Option<HashMap<String, usize>>>,
        }
        impl <'a> ActionMapperSerde<'a> {
            pub fn new(action_map: &'a Vec<Option<HashMap<String, usize>>>)
             -> Self {
                ActionMapperSerde{action_map: action_map,}
            }
        }
    }
}