pub struct PresetMeta {
pub uuid: String,
pub name: String,
pub category: String,
pub author: String,
pub comment: String,
pub tags: Vec<String>,
pub default: bool,
}Expand description
Preset metadata carried in the container’s header block.
uuid is the preset’s stable identity: generated once when the
preset is authored and never changed afterwards, so renames and
recategorisation don’t break host-side references. category is
the explicit value only; consumers fall back to the parent
directory name when it’s empty.
Fields§
§uuid: String§name: String§category: String§comment: String§default: boolThe library’s “init sound”. At most one preset per library sets this; consumers order it first where a format has a positional default (the AU factory list).
Trait Implementations§
Source§impl Clone for PresetMeta
impl Clone for PresetMeta
Source§fn clone(&self) -> PresetMeta
fn clone(&self) -> PresetMeta
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 PresetMeta
impl Debug for PresetMeta
Source§impl Default for PresetMeta
impl Default for PresetMeta
Source§fn default() -> PresetMeta
fn default() -> PresetMeta
Returns the “default value” for a type. Read more
impl Eq for PresetMeta
Source§impl PartialEq for PresetMeta
impl PartialEq for PresetMeta
Source§fn eq(&self, other: &PresetMeta) -> bool
fn eq(&self, other: &PresetMeta) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PresetMeta
Auto Trait Implementations§
impl Freeze for PresetMeta
impl RefUnwindSafe for PresetMeta
impl Send for PresetMeta
impl Sync for PresetMeta
impl Unpin for PresetMeta
impl UnsafeUnpin for PresetMeta
impl UnwindSafe for PresetMeta
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