Skip to main content

PluginInfo

Struct PluginInfo 

Source
pub struct PluginInfo {
Show 20 fields pub name: &'static str, pub vendor: &'static str, pub url: &'static str, pub version: &'static str, pub category: PluginCategory, pub bundle_id: &'static str, pub vst3_id: &'static str, pub clap_id: &'static str, pub fourcc: [u8; 4], pub au_type: [u8; 4], pub au_manufacturer: [u8; 4], pub aax_id: Option<&'static str>, pub aax_category: Option<&'static str>, pub vst3_name: Option<&'static str>, pub clap_name: Option<&'static str>, pub vst2_name: Option<&'static str>, pub au_name: Option<&'static str>, pub au3_name: Option<&'static str>, pub aax_name: Option<&'static str>, pub lv2_name: Option<&'static str>, /* private fields */
}
Expand description

Static metadata about a plugin.

Fields§

§name: &'static str§vendor: &'static str§url: &'static str§version: &'static str§category: PluginCategory§bundle_id: &'static str

Short identifier (bundle_id in truce.toml). Used to derive the LV2 plugin URI ({vendor.url}/lv2/{bundle_id}); also a stable, vendor-agnostic key for “this plugin” that doesn’t drift with display-name changes the way clap_id does.

§vst3_id: &'static str§clap_id: &'static str§fourcc: [u8; 4]§au_type: [u8; 4]§au_manufacturer: [u8; 4]§aax_id: Option<&'static str>§aax_category: Option<&'static str>

AAX plugin category string (e.g. “EQ”, “Dynamics”, “Reverb”). Maps to AAX_ePlugInCategory constants.

§vst3_name: Option<&'static str>

Per-format display-name overrides, populated by truce::plugin_info!() from the matching truce.toml keys. Format wrappers fall back to name when the override is None. Baked at compile time so back-to-back plugin builds with different overrides don’t invalidate the format wrapper’s build fingerprint.

au3_name is exposed for parity with the other formats and for user introspection, but truce-au’s resolved_plugin_name reads au_name for both v2 and v3 builds - the v3 host’s displayed label comes from the appex Info.plist’s AUNAME (which cargo truce install --au3 populates from au3_name), not from g_descriptor->name.

§clap_name: Option<&'static str>§vst2_name: Option<&'static str>§au_name: Option<&'static str>§au3_name: Option<&'static str>§aax_name: Option<&'static str>§lv2_name: Option<&'static str>

Trait Implementations§

Source§

impl Clone for PluginInfo

Source§

fn clone(&self) -> PluginInfo

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PluginInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.