pub struct Library {
pub root_paths: Vec<PathBuf>,
pub tracks: Vec<Track>,
pub albums: Vec<Album>,
pub jellyfin_tracks: Vec<Track>,
pub jellyfin_albums: Vec<Album>,
pub jellyfin_genres: Vec<(String, String)>,
pub last_yt_sync_at: Option<u64>,
pub last_yt_playlists_sync_at: Option<u64>,
pub server_artist_images: HashMap<String, String>,
pub local_artist_images: HashMap<String, PathBuf>,
pub custom_artist_images: HashMap<String, PathBuf>,
}Fields§
§root_paths: Vec<PathBuf>§tracks: Vec<Track>§albums: Vec<Album>§jellyfin_tracks: Vec<Track>§jellyfin_albums: Vec<Album>§jellyfin_genres: Vec<(String, String)>§last_yt_sync_at: Option<u64>Unix timestamp (seconds) of the last successful YT library sync.
None means “never synced” → the Favorites page kicks off an
initial fetch on next mount. Cleared by the manual refresh
button to force a re-fetch.
last_yt_playlists_sync_at: Option<u64>Companion to last_yt_sync_at for the YT playlists list.
Tracked separately because the favorites page and the playlists
page are independent — one synced doesn’t imply the other.
server_artist_images: HashMap<String, String>§local_artist_images: HashMap<String, PathBuf>§custom_artist_images: HashMap<String, PathBuf>User-set custom artist photos, keyed by normalized (trim+lowercase) artist name. Overrides both local_artist_images and server_artist_images when present.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Library
impl<'de> Deserialize<'de> for Library
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
Auto Trait Implementations§
impl Freeze for Library
impl RefUnwindSafe for Library
impl Send for Library
impl Sync for Library
impl Unpin for Library
impl UnsafeUnpin for Library
impl UnwindSafe for Library
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