pub struct WidgetManifest {Show 17 fields
pub schema_version: u32,
pub id: String,
pub name: String,
pub version: String,
pub entry: Option<String>,
pub module: Option<String>,
pub settings_entry: Option<String>,
pub dashboard_entry: Option<String>,
pub description: String,
pub icon: Option<String>,
pub banner: Option<String>,
pub permissions: Vec<WidgetPermission>,
pub network_origins: Vec<String>,
pub processes: Vec<WidgetProcess>,
pub popout: PopoutShape,
pub popout_on_top: bool,
pub min_app_version: Option<String>,
}Expand description
A widget’s widget.json.
Fields§
§schema_version: u32§id: String§name: String§version: String§entry: Option<String>Sandboxed iframe page. Optional when the widget provides module.
module: Option<String>ES module loaded into the app window with full access to the host API.
settings_entry: Option<String>Sandboxed settings page, which must be settings.html.
dashboard_entry: Option<String>Sandboxed dashboard tile page, which must be dashboard.html.
description: String§icon: Option<String>Image in the package shown across the top of the widget’s card.
permissions: Vec<WidgetPermission>§network_origins: Vec<String>Bare HTTPS origins the widget may fetch. Requires network.fetch.
processes: Vec<WidgetProcess>Executables under optional-bin/ the widget may start. Requires process.spawn.
popout: PopoutShapeShape of the widget’s own window.
popout_on_top: boolKeeps the widget’s own window above other windows.
min_app_version: Option<String>Oldest Toolblox version the widget runs on, as SemVer.
Implementations§
Trait Implementations§
Source§impl Clone for WidgetManifest
impl Clone for WidgetManifest
Source§impl Debug for WidgetManifest
impl Debug for WidgetManifest
Source§impl<'de> Deserialize<'de> for WidgetManifest
impl<'de> Deserialize<'de> for WidgetManifest
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 WidgetManifest
Source§impl PartialEq for WidgetManifest
impl PartialEq for WidgetManifest
Source§impl Serialize for WidgetManifest
impl Serialize for WidgetManifest
impl StructuralPartialEq for WidgetManifest
Auto Trait Implementations§
impl Freeze for WidgetManifest
impl RefUnwindSafe for WidgetManifest
impl Send for WidgetManifest
impl Sync for WidgetManifest
impl Unpin for WidgetManifest
impl UnsafeUnpin for WidgetManifest
impl UnwindSafe for WidgetManifest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.