pub struct ResolvedInstrument {
pub name: String,
pub format: PresetFormat,
pub samples: Vec<ResolvedSample>,
pub licence: LicenceTag,
}Expand description
A preset bound to its content location(s) and stamped with licence provenance.
Fields§
§name: StringDisplay name (carried from the preset).
format: PresetFormatOriginating format.
samples: Vec<ResolvedSample>Resolved sample references. For embedded (SF2/DLS) formats this is a single entry marking the source file as the resolution target.
licence: LicenceTagLicence provenance — PRESERVED so a later export/share can fail closed.
Implementations§
Source§impl ResolvedInstrument
impl ResolvedInstrument
Sourcepub fn redistribution_allowed(&self) -> bool
pub fn redistribution_allowed(&self) -> bool
May this instrument’s content be redistributed in a shared/exported artifact?
Delegates to the recorded LicenceTag, failing closed on Unknown/restricted tags.
Trait Implementations§
Source§impl Clone for ResolvedInstrument
impl Clone for ResolvedInstrument
Source§impl Debug for ResolvedInstrument
impl Debug for ResolvedInstrument
impl Eq for ResolvedInstrument
Source§impl PartialEq for ResolvedInstrument
impl PartialEq for ResolvedInstrument
impl StructuralPartialEq for ResolvedInstrument
Auto Trait Implementations§
impl Freeze for ResolvedInstrument
impl RefUnwindSafe for ResolvedInstrument
impl Send for ResolvedInstrument
impl Sync for ResolvedInstrument
impl Unpin for ResolvedInstrument
impl UnsafeUnpin for ResolvedInstrument
impl UnwindSafe for ResolvedInstrument
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