(self, py: Python)
| 140 | |
| 141 | impl IntoPyDict for EnvelopeInfo { |
| 142 | fn into_py_dict(self, py: Python) -> &PyDict { |
| 143 | let dict = PyDict::new(py); |
| 144 | macro_rules! store { |
| 145 | ($k: ident) => { |
| 146 | dict.set_item(stringify!($k), self.$k).unwrap(); |
| 147 | }; |
| 148 | } |
| 149 | store!(from_addr); |
| 150 | store!(to_addr); |
| 151 | store!(transfer_addr); |
| 152 | store!(partial_id); |
| 153 | store!(tag); |
| 154 | dict |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | pub fn envelope_register(module: &PyModule) -> PyResult<()> { |
no outgoing calls
no test coverage detected