pub struct ActPackageDefinition {
pub id: &'static str,
pub name: &'static str,
pub desc: &'static str,
pub icon: &'static str,
pub doc: &'static str,
pub version: &'static str,
pub schema: Value,
pub options: Option<Value>,
pub run_as: ActRunAs,
pub resources: Vec<ActResource>,
pub catalog: ActPackageCatalog,
}Fields§
§id: &'static strpackage id, used to identify the package
name: &'static strpackage simple name
desc: &'static strpackage description
icon: &'static stricon name to display in the editor ui
doc: &'static strreleated doc url to show the help
version: &'static strpackage version
schema: Valuejson schema for package params
options: Option<Value>extra options
run_as: ActRunAspackage run as Irq, Msg or Func Func is only used internally
resources: Vec<ActResource>package resources to the orgnize multiple resources it is used for the editor ui to search and select the resources each resource value can fill the special value into the UI
catalog: ActPackageCatalogpackage catalog
Implementations§
Trait Implementations§
Source§impl Clone for ActPackageDefinition
impl Clone for ActPackageDefinition
Source§fn clone(&self) -> ActPackageDefinition
fn clone(&self) -> ActPackageDefinition
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 ActPackageDefinition
impl Debug for ActPackageDefinition
Source§impl Deserialize<'static> for ActPackageDefinition
impl Deserialize<'static> for ActPackageDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ActPackageDefinition
impl RefUnwindSafe for ActPackageDefinition
impl Send for ActPackageDefinition
impl Sync for ActPackageDefinition
impl Unpin for ActPackageDefinition
impl UnsafeUnpin for ActPackageDefinition
impl UnwindSafe for ActPackageDefinition
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