Enum monument_cli::spec::MusicSpec [−][src]
pub enum MusicSpec {
RunLength {
length: usize,
internal: bool,
common: MusicCommon,
},
RunLengths {
lengths: Vec<usize>,
internal: bool,
common: MusicCommon,
},
Pattern {
pattern: String,
count_each: OptRange,
common: MusicCommon,
},
Patterns {
patterns: Vec<String>,
count_each: OptRange,
common: MusicCommon,
},
}Expand description
The specification for one type of music
Variants
RunLength
RunLengths
Pattern
Fields
pattern: Stringcount_each: OptRangeFor each pattern, which music counts are allowed
common: MusicCommonPatterns
Implementations
Trait Implementations
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 RefUnwindSafe for MusicSpec
impl UnwindSafe for MusicSpec
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
