pub struct StructuralChangePlan {
pub contract_version: u32,
pub command_key: String,
pub can_apply: bool,
pub affected_addresses: Vec<NoteAddr>,
pub resulting_measures: Vec<StructuralMeasureStructure>,
pub diagnostics: Vec<StructuralChangeDiagnostic>,
}Expand description
A side-effect-free preview of a structural command.
When can_apply is true, affected_addresses includes both old and new
note addresses for moved notes and resulting_measures records every lane
whose voice structure changes. A false plan never exposes a partial score:
it contains diagnostics only.
Fields§
§contract_version: u32§command_key: String§can_apply: bool§affected_addresses: Vec<NoteAddr>§resulting_measures: Vec<StructuralMeasureStructure>§diagnostics: Vec<StructuralChangeDiagnostic>Trait Implementations§
Source§impl Clone for StructuralChangePlan
impl Clone for StructuralChangePlan
Source§impl Debug for StructuralChangePlan
impl Debug for StructuralChangePlan
Source§impl<'de> Deserialize<'de> for StructuralChangePlan
impl<'de> Deserialize<'de> for StructuralChangePlan
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
impl Eq for StructuralChangePlan
Source§impl PartialEq for StructuralChangePlan
impl PartialEq for StructuralChangePlan
Source§impl Serialize for StructuralChangePlan
impl Serialize for StructuralChangePlan
impl StructuralPartialEq for StructuralChangePlan
Auto Trait Implementations§
impl Freeze for StructuralChangePlan
impl RefUnwindSafe for StructuralChangePlan
impl Send for StructuralChangePlan
impl Sync for StructuralChangePlan
impl Unpin for StructuralChangePlan
impl UnsafeUnpin for StructuralChangePlan
impl UnwindSafe for StructuralChangePlan
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