pub struct FavoritesStore {
pub local_favorites: Vec<PathBuf>,
pub jellyfin_favorites: Vec<String>,
}Fields§
§local_favorites: Vec<PathBuf>§jellyfin_favorites: Vec<String>Implementations§
Source§impl FavoritesStore
impl FavoritesStore
pub fn is_local_favorite(&self, path: &Path) -> bool
pub fn is_jellyfin_favorite(&self, id: &str) -> bool
pub fn toggle_local(&mut self, path: PathBuf) -> bool
pub fn set_jellyfin(&mut self, id: String, is_fav: bool)
Trait Implementations§
Source§impl Clone for FavoritesStore
impl Clone for FavoritesStore
Source§fn clone(&self) -> FavoritesStore
fn clone(&self) -> FavoritesStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FavoritesStore
impl Debug for FavoritesStore
Source§impl Default for FavoritesStore
impl Default for FavoritesStore
Source§fn default() -> FavoritesStore
fn default() -> FavoritesStore
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FavoritesStore
impl<'de> Deserialize<'de> for FavoritesStore
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FavoritesStore
impl PartialEq for FavoritesStore
Source§fn eq(&self, other: &FavoritesStore) -> bool
fn eq(&self, other: &FavoritesStore) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FavoritesStore
impl Serialize for FavoritesStore
impl StructuralPartialEq for FavoritesStore
Auto Trait Implementations§
impl Freeze for FavoritesStore
impl RefUnwindSafe for FavoritesStore
impl Send for FavoritesStore
impl Sync for FavoritesStore
impl Unpin for FavoritesStore
impl UnsafeUnpin for FavoritesStore
impl UnwindSafe for FavoritesStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more