goosemusic 1.2.0

A music player with YouTube search, local playback, and OS media controls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Mutable working copy of a track being edited in the track-editing popup.
//!
//! Holds only the text-editable fields (`source` is changed via the provider
//! "select" buttons) plus the original position so the edit can be written
//! back to the correct list.

use crate::{app::interaction::TrackPos, providers::ProviderId, types::Track};

#[derive(Debug, Clone)]
pub struct EditTrackState {
    pub title: String,
    pub artist: String,
    pub source: ProviderId,
    pub original: Track,
    pub pos: TrackPos,
    /// The provider whose "Find" action is currently in flight, if any.
    pub finding: Option<ProviderId>,
}