(&self, data: GetEntityOptions)
| 57 | |
| 58 | #[tracing::instrument(level = "debug", skip(self, data))] |
| 59 | pub fn get_entity(&self, data: GetEntityOptions) -> Result<MainCommandResponse> { |
| 60 | let database: State<'_, Database> = self.app_handle.state(); |
| 61 | let ret = database.get_entity_by_options(data)?; |
| 62 | Ok(MainCommandResponse::GetEntity(ret)) |
| 63 | } |
| 64 | |
| 65 | #[tracing::instrument(level = "debug", skip(self, data))] |
| 66 | pub fn add_songs(&self, data: Vec<Song>) -> Result<MainCommandResponse> { |
no test coverage detected