pub struct UnifyConfig {
pub id_unifiers: HashMap<String, String>,
pub title_unifiers: HashMap<String, String>,
}Expand description
Unification configuration loaded from JSON.
Each map entry represents old_value → canonical_value. If the
canonical value is "" (empty string), entries containing that
old value are removed from the playlist.
Fields§
§id_unifiers: HashMap<String, String>Old ID substring → canonical ID replacement. "" = delete entry.
title_unifiers: HashMap<String, String>Old title substring → canonical title replacement. "" = delete entry.
Trait Implementations§
Source§impl Clone for UnifyConfig
impl Clone for UnifyConfig
Source§fn clone(&self) -> UnifyConfig
fn clone(&self) -> UnifyConfig
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 moreSource§impl Debug for UnifyConfig
impl Debug for UnifyConfig
Source§impl Default for UnifyConfig
impl Default for UnifyConfig
Source§fn default() -> UnifyConfig
fn default() -> UnifyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnifyConfig
impl<'de> Deserialize<'de> for UnifyConfig
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 UnifyConfig
impl RefUnwindSafe for UnifyConfig
impl Send for UnifyConfig
impl Sync for UnifyConfig
impl Unpin for UnifyConfig
impl UnsafeUnpin for UnifyConfig
impl UnwindSafe for UnifyConfig
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