MCPcopy Create free account
hub / github.com/Moosync/Moosync / get_entity

Method get_entity

src-tauri/src/extensions/request_handler.rs:59–63  ·  view source on GitHub ↗
(&self, data: GetEntityOptions)

Source from the content-addressed store, hash-verified

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> {

Callers 1

handle_requestMethod · 0.80

Calls 1

get_entity_by_optionsMethod · 0.80

Tested by

no test coverage detected