pub struct ExtensionBundleManifest {
pub name: String,
pub version: String,
pub protocol: ExtensionProtocols,
pub hooks_sha256: String,
pub controllers: IndexMap<BinaryTarget, Option<ControllerBinary>>,
pub resource_types: IndexMap<ResourceType, ResourceTypeDescriptor>,
pub controller_module_sha256: Option<String>,
pub egress: Vec<String>,
}Expand description
What an extension bundle’s core zip says about the extension: what a loader checks before it
runs anything. The zip’s own digest is not in it, since a file can’t hold its own digest; the
stack pins the zip by ExtensionManifest::digest.
Fields§
§name: StringThe extension’s name, as export! declares it.
version: StringThe extension’s version, from its hooks crate.
protocol: ExtensionProtocolsThe protocol versions the extension speaks.
hooks_sha256: StringThe sha256 of the hooks module, hex-encoded.
controllers: IndexMap<BinaryTarget, Option<ControllerBinary>>The controller binary per target. Every target is listed when the extension has a
controller, and one the build did not produce is null. Empty without a controller.
resource_types: IndexMap<ResourceType, ResourceTypeDescriptor>The resource types the extension defines, keyed by type name.
controller_module_sha256: Option<String>The sha256 of the controller module, hex-encoded, when the extension’s controllers run
as WebAssembly in the loader’s process. Every loader runs it but alien dev, which runs
the binary in controllers.
egress: Vec<String>The origins (https://host[:port]) the controller module may call besides its cloud,
with no credential of the deployment’s.
Trait Implementations§
Source§impl Clone for ExtensionBundleManifest
impl Clone for ExtensionBundleManifest
Source§impl Debug for ExtensionBundleManifest
impl Debug for ExtensionBundleManifest
Source§impl<'de> Deserialize<'de> for ExtensionBundleManifest
impl<'de> Deserialize<'de> for ExtensionBundleManifest
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>,
impl Eq for ExtensionBundleManifest
Source§impl PartialEq for ExtensionBundleManifest
impl PartialEq for ExtensionBundleManifest
Source§impl Serialize for ExtensionBundleManifest
impl Serialize for ExtensionBundleManifest
impl StructuralPartialEq for ExtensionBundleManifest
Auto Trait Implementations§
impl Forget for ExtensionBundleManifest
impl Freeze for ExtensionBundleManifest
impl Move for ExtensionBundleManifest
impl RefUnwindSafe for ExtensionBundleManifest
impl Send for ExtensionBundleManifest
impl Sync for ExtensionBundleManifest
impl Unpin for ExtensionBundleManifest
impl UnsafeUnpin for ExtensionBundleManifest
impl UnwindSafe for ExtensionBundleManifest
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
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.