pub enum EditStrategy {
EditAll,
SpecificScrobbles(Vec<u64>),
}Expand description
Strategy for performing scrobble edits.
This enum determines whether to edit all matching scrobbles or only specific instances identified by timestamps.
§Examples
use lastfm_edit::EditStrategy;
// Edit all instances - good for fixing systematic errors
let bulk_strategy = EditStrategy::EditAll;
// Edit specific scrobbles - good for precision edits
let specific_strategy = EditStrategy::SpecificScrobbles(vec![1640995200, 1641000000]);Variants§
EditAll
Edit all instances of this track/artist combination.
Uses Last.fm’s bulk edit functionality to update all scrobbles with matching metadata. This is efficient but affects all instances.
SpecificScrobbles(Vec<u64>)
Edit specific scrobbles with known timestamps.
Targets only the scrobbles identified by the provided timestamps. This requires fetching actual scrobble data first but provides more precise control.
Trait Implementations§
Source§impl Clone for EditStrategy
impl Clone for EditStrategy
Source§fn clone(&self) -> EditStrategy
fn clone(&self) -> EditStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EditStrategy
impl RefUnwindSafe for EditStrategy
impl Send for EditStrategy
impl Sync for EditStrategy
impl Unpin for EditStrategy
impl UnwindSafe for EditStrategy
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