(
&self,
_vars: &HashMap<String, String>,
pl: &integration::LocationEvent,
)
| 170 | } |
| 171 | |
| 172 | async fn location_event( |
| 173 | &self, |
| 174 | _vars: &HashMap<String, String>, |
| 175 | pl: &integration::LocationEvent, |
| 176 | ) -> Result<()> { |
| 177 | let b = match self.json { |
| 178 | true => serde_json::to_vec(&pl)?, |
| 179 | false => pl.encode_to_vec(), |
| 180 | }; |
| 181 | |
| 182 | self.post_event("location", b).await |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | #[cfg(test)] |