pub struct AppManifest {
pub spin_manifest_version: FixedVersion<2>,
pub application: AppDetails,
pub variables: IndexMap<LowerSnakeId, Variable>,
pub triggers: IndexMap<String, Vec<Trigger>>,
pub components: IndexMap<KebabId, Component>,
}
Expand description
App manifest
Fields§
§spin_manifest_version: FixedVersion<2>
spin_manifest_version = 2
application: AppDetails
[application]
variables: IndexMap<LowerSnakeId, Variable>
Application configuration variables. These can be set via environment variables, or from sources such as Hashicorp Vault or Azure KeyVault by using a runtime config file. They are not available directly to components: use a component variable to ingest them.
Learn more: https://spinframework.dev/variables, https://spinframework.dev/dynamic-configuration#application-variables-runtime-configuration
triggers: IndexMap<String, Vec<Trigger>>
The triggers to which the application responds. Most triggers can appear
multiple times with different parameters: for example, the http
trigger may
appear multiple times with different routes, or the redis
trigger with
different channels.
Example: [[trigger.http]]
components: IndexMap<KebabId, Component>
[component.<id>]
Implementations§
Source§impl AppManifest
impl AppManifest
Sourcepub fn validate_dependencies(&self) -> Result<()>
pub fn validate_dependencies(&self) -> Result<()>
This method ensures that the dependencies of each component are valid.
Trait Implementations§
Source§impl Clone for AppManifest
impl Clone for AppManifest
Source§fn clone(&self) -> AppManifest
fn clone(&self) -> AppManifest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AppManifest
impl Debug for AppManifest
Source§impl<'de> Deserialize<'de> for AppManifest
impl<'de> Deserialize<'de> for AppManifest
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>,
Source§impl JsonSchema for AppManifest
impl JsonSchema for AppManifest
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more