pub struct DefaultRule {
pub name: String,
pub description: String,
pub examples: Vec<String>,
pub track_name: Option<DefaultRulePattern>,
pub artist_name: Option<DefaultRulePattern>,
pub album_name: Option<DefaultRulePattern>,
pub album_artist_name: Option<DefaultRulePattern>,
pub requires_confirmation: bool,
pub requires_musicbrainz_confirmation: bool,
}Fields§
§name: String§description: String§examples: Vec<String>§track_name: Option<DefaultRulePattern>§artist_name: Option<DefaultRulePattern>§album_name: Option<DefaultRulePattern>§album_artist_name: Option<DefaultRulePattern>§requires_confirmation: bool§requires_musicbrainz_confirmation: boolOptional flag: require MusicBrainz confirmation of the rewritten metadata
Trait Implementations§
Source§impl Clone for DefaultRule
impl Clone for DefaultRule
Source§fn clone(&self) -> DefaultRule
fn clone(&self) -> DefaultRule
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 DefaultRule
impl Debug for DefaultRule
Source§impl<'de> Deserialize<'de> for DefaultRule
impl<'de> Deserialize<'de> for DefaultRule
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 From<DefaultRule> for RewriteRule
Convert default rule to RewriteRule
impl From<DefaultRule> for RewriteRule
Convert default rule to RewriteRule
Source§fn from(default_rule: DefaultRule) -> Self
fn from(default_rule: DefaultRule) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DefaultRule
impl RefUnwindSafe for DefaultRule
impl Send for DefaultRule
impl Sync for DefaultRule
impl Unpin for DefaultRule
impl UnsafeUnpin for DefaultRule
impl UnwindSafe for DefaultRule
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