Skip to main content

toggle_favorite

Function toggle_favorite 

Source
pub fn toggle_favorite(item: impl Into<LibraryItem>) -> Result<(), Error>
Expand description

Adds an item to the favorites list if it’s not present there, or removes it if it is.

Fails if the library is not initialized.