pub struct Sound {
pub id: String,
pub name: String,
pub kind: SoundKind,
pub path: PathBuf,
pub plugin_id: Option<String>,
pub instrument: bool,
pub category: Option<String>,
pub tags: Vec<String>,
pub origin: String,
pub registry_id: Option<String>,
}Expand description
One usable sound.
Fields§
§id: StringStable identifier: the plugin id, or a slug of the file name.
name: String§kind: SoundKind§path: PathBufThe bundle, .sf2, .sfz, or IR file.
plugin_id: Option<String>§instrument: boolPlays notes (instrument plugins, SoundFonts, SFZ); IRs and effects do not.
category: Option<String>One of keys, strings, guitar, bass, drums, synth, pad, brass, winds, vocal, fx.
origin: Stringinstalled, sound-path, or plugin-scan.
registry_id: Option<String>The registry entry this came from, when installed from the registry.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sound
impl<'de> Deserialize<'de> for Sound
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 StructuralPartialEq for Sound
Auto Trait Implementations§
impl Forget for Sound
impl Freeze for Sound
impl Move for Sound
impl RefUnwindSafe for Sound
impl Send for Sound
impl Sync for Sound
impl Unpin for Sound
impl UnsafeUnpin for Sound
impl UnwindSafe for Sound
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more