pub struct PluginManifest {
pub id: PluginId,
pub name: String,
pub version: String,
pub api_version: String,
pub runtime: Runtime,
pub description: Option<String>,
pub author: Option<String>,
pub license: String,
pub engines: Option<Engines>,
pub main: Option<String>,
pub permissions: Vec<Permission>,
pub contributes: Contributes,
}Expand description
プラグインのマニフェスト。
Fields§
§id: PluginId§name: String表示名。
version: Stringプラグイン自身のバージョン(SemVer)。
api_version: String対象とするプラグイン API のメジャーバージョン(plugin-sdk のメジャーバージョン)。
runtime: Runtime§description: Option<String>作者の名前。権限を許可する画面などに出す。
license: StringSPDX ライセンス式。
engines: Option<Engines>動く本体の版の範囲。書かなければ、どの版の本体でも動かす。
main: Option<String>エントリポイント。rules では不要。
browser: 1 つのファイルにまとめた従来型のスクリプト(例: ESM を IIFE にまとめたもの)。 モジュール形式(import/exportを含むもの)は Chromium のサンドボックス化した iframe の中で動かせない(ADR-0018 §3.1)。wasm-component: .wasm ファイル。
permissions: Vec<Permission>要求する権限。宣言していない操作はホストが拒否する。
contributes: ContributesTrait Implementations§
Source§impl Clone for PluginManifest
impl Clone for PluginManifest
Source§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
impl Eq for PluginManifest
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 Forget for PluginManifest
impl Freeze for PluginManifest
impl Move 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