pub struct PluginManifest {
pub plugin_type: String,
pub name: String,
pub version: String,
pub description: String,
pub js: String,
pub wasm: String,
pub data_file: Option<String>,
pub canvas_id: Option<String>,
pub entry_point: Option<String>,
pub storage_key: Option<String>,
pub ldt_file: Option<String>,
pub storage_keys: Option<StorageKeys>,
}Expand description
Plugin manifest describing a viewer plugin embedded in a GLDF file.
Fields§
§plugin_type: StringPlugin type identifier (e.g., “starsky”, “acadlisp”)
name: StringHuman-readable plugin name
version: StringPlugin version (semver)
description: StringPlugin description
js: StringJavaScript file name (wasm-bindgen generated)
wasm: StringWASM binary file name
data_file: Option<String>Data file this plugin consumes (path within GLDF, e.g., “other/sky_data.json”)
canvas_id: Option<String>Canvas element ID the plugin renders to
entry_point: Option<String>Entry point function name to call after loading
storage_key: Option<String>localStorage key for passing data to the plugin
ldt_file: Option<String>LDT file this plugin uses (path within GLDF, e.g., “ldc/file.ldt”)
storage_keys: Option<StorageKeys>Multiple storage keys (for plugins needing config + LDT)
Trait Implementations§
Source§impl Clone for PluginManifest
impl Clone for PluginManifest
Source§fn clone(&self) -> PluginManifest
fn clone(&self) -> PluginManifest
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 PluginManifest
impl Debug for PluginManifest
Source§impl<'de> Deserialize<'de> for PluginManifest
impl<'de> Deserialize<'de> for PluginManifest
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
Source§impl PartialEq for PluginManifest
impl PartialEq for PluginManifest
Source§impl Serialize for PluginManifest
impl Serialize for PluginManifest
impl StructuralPartialEq for PluginManifest
Auto Trait Implementations§
impl Freeze for PluginManifest
impl RefUnwindSafe for PluginManifest
impl Send for PluginManifest
impl Sync for PluginManifest
impl Unpin for PluginManifest
impl UnsafeUnpin for PluginManifest
impl UnwindSafe for PluginManifest
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