pub struct WasmPkgNoSource {
pub name: String,
pub app_name: Option<String>,
pub app_module: Option<String>,
pub capabilities: Option<Capabilities>,
pub pkg_type: PkgType,
pub meta: PkgMeta,
}
Expand description
Definition of a wasm package - without the actual source
There are cases where you want to handle the package definition and the source seperately,
so we need a type to represent a WasmPkg
without the actual Source
.
Fields§
§name: String
Name of the package
app_name: Option<String>
Name of the application that this package is a part of
An application is just an abstraction for multiple wasm packages. It can be further split into application modules.
The full specifier for the package would be (if application and app-modules are used):
<app_name>/<app_module>/<pkg-name>
app_module: Option<String>
Name of the application module that this package is a part of
An application module is a subset of wasm modules in an application.
The full specifier for the package would be (if application and app-modules are used):
<app_name>/<app_module>/<pkg-name>
capabilities: Option<Capabilities>
(Networking) Capabilities of the package
This is only used for software agents, which can make network calls and may use a websocket.
The capabilities are registered in the runtime, so that the agent cannot make any other network
calls than specified by the url-whitelist in Capabilities
.
pkg_type: PkgType
Package type (contract or agent)
meta: PkgMeta
Package metadata
Implementations§
Source§impl WasmPkgNoSource
impl WasmPkgNoSource
pub fn into_dto(self) -> WasmPkgNoSourceDto
Trait Implementations§
Source§impl Clone for WasmPkgNoSource
impl Clone for WasmPkgNoSource
Source§fn clone(&self) -> WasmPkgNoSource
fn clone(&self) -> WasmPkgNoSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more