(
&self,
_vars: &HashMap<String, String>,
pl: &integration::StatusEvent,
)
| 157 | } |
| 158 | |
| 159 | async fn status_event( |
| 160 | &self, |
| 161 | _vars: &HashMap<String, String>, |
| 162 | pl: &integration::StatusEvent, |
| 163 | ) -> Result<()> { |
| 164 | let b = match self.json { |
| 165 | true => serde_json::to_vec(&pl)?, |
| 166 | false => pl.encode_to_vec(), |
| 167 | }; |
| 168 | |
| 169 | self.post_event("status", b).await |
| 170 | } |
| 171 | |
| 172 | async fn location_event( |
| 173 | &self, |