Struct wasmcloud_host::HostManifest[][src]

pub struct HostManifest { /* fields omitted */ }
Expand description

A host manifest contains a declarative profile of the host’s desired state. The manifest can specify custom labels, a list of actors, a list of capability providers, and a list of link definitions. Environment substitution syntax can optionally be used within a manifest file so that information that may change across environments (like public keys) can change without requiring the manifest file to change.

Examples

labels:
    sample: "wasmcloud echo"
actors:
    - "wasmcloud.azurecr.io/echo:0.2.0"
capabilities:
    - image_ref: wasmcloud.azurecr.io/httpserver:0.11.1
      link_name: default
links:
    - actor: ${ECHO_ACTOR:MBCFOPM6JW2APJLXJD3Z5O4CN7CPYJ2B4FTKLJUR5YR5MITIU7HD3WD5}
      provider_id: "VAG3QITQQ2ODAOWB5TTQSDJ53XK3SHBEIFNK4AYJ5RKAX2UNSCAPHA5M"
      contract_id: "wasmcloud:httpserver"
      link_name: default
      values:
        PORT: 8080

Implementations

Creates an instance of a host manifest from a file path. The de-serialization type will be chosen based on the file path extension, selecting YAML for .yaml or .yml files, and JSON for all other file extensions. If the path has no extension, the de-serialization type chosen will be YAML. If expand_env is true then environment substitution syntax will be honored in the manifest file.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.