Get the client ID used for telemetry requests.
(&mut self)
| 271 | |
| 272 | /// Get the client ID used for telemetry requests. |
| 273 | pub fn get_client_id(&mut self) -> Result<Option<Uuid>, DatabaseError> { |
| 274 | Ok(self |
| 275 | .get_json_entry::<String>(Table::State, CLIENT_ID_KEY)? |
| 276 | .and_then(|s| Uuid::from_str(&s).ok())) |
| 277 | } |
| 278 | |
| 279 | /// Get changelog last version from state table |
| 280 | pub fn get_changelog_last_version(&self) -> Result<Option<String>, DatabaseError> { |