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

Method add_playlist

src-tauri/src/extensions/request_handler.rs:80–84  ·  view source on GitHub ↗
(&self, data: QueryablePlaylist)

Source from the content-addressed store, hash-verified

78
79 #[tracing::instrument(level = "debug", skip(self, data))]
80 pub fn add_playlist(&self, data: QueryablePlaylist) -> Result<MainCommandResponse> {
81 let database: State<'_, Database> = self.app_handle.state();
82 let ret = database.create_playlist(data)?;
83 Ok(MainCommandResponse::AddPlaylist(ret))
84 }
85
86 #[tracing::instrument(level = "debug", skip(self, data))]
87 pub fn add_to_playlist(

Callers 1

handle_requestMethod · 0.80

Calls 1

create_playlistMethod · 0.80

Tested by

no test coverage detected