musicxml/elements/
harmon_closed.rs

1use crate::datatypes::{HarmonClosedLocation, HarmonClosedValue};
2use alloc::{string::String, vec::Vec};
3use musicxml_internal::*;
4use musicxml_macros::*;
5
6/// Attributes pertaining to the [HarmonClosed] element.
7#[derive(Debug, Default, PartialEq, Eq, AttributeDeserialize, AttributeSerialize)]
8pub struct HarmonClosedAttributes {
9  /// Indicates which portion of the symbol is filled in when the element value is half.
10  pub location: Option<HarmonClosedLocation>,
11}
12
13/// The [HarmonClosed] element represents whether the harmon mute is closed, open, or half-open.
14#[derive(Debug, PartialEq, Eq, ElementDeserialize, ElementSerialize)]
15#[rename("harmon-closed")]
16pub struct HarmonClosed {
17  /// Element-specific attributes
18  pub attributes: HarmonClosedAttributes,
19  /// Element-specific content
20  pub content: HarmonClosedValue,
21}