pub struct AppDetails {
pub name: String,
pub version: String,
pub description: String,
pub authors: Vec<String>,
pub targets: Vec<TargetEnvironmentRef>,
pub trigger_global_configs: IndexMap<String, Table>,
pub tool: IndexMap<String, Table>,
}Expand description
App details
Fields§
§name: StringThe name of the application.
Example: name = "my-app"
version: StringThe application version. This should be a valid semver version.
Example: version = "1.0.0"
description: StringA human-readable description of the application.
Example: description = "App description"
The author(s) of the application.
authors = ["author@example.com"]
targets: Vec<TargetEnvironmentRef>The Spin environments with which application components must be compatible unless otherwise specified. Individual components may express different requirements: these override the application-level default.
Example: targets = ["spin-up:3.3", "spinkube:0.4"]
trigger_global_configs: IndexMap<String, Table>Application-level settings for the trigger types used in the application. The possible values are trigger type-specific.
Example:
[application.triggers.redis]
address = "redis://notifications.example.com:6379"Learn more (Redis example): https://spinframework.dev/redis-trigger#setting-a-default-server
tool: IndexMap<String, Table>Settings for custom tools or plugins. Spin ignores this field.
Trait Implementations§
Source§impl Clone for AppDetails
impl Clone for AppDetails
Source§fn clone(&self) -> AppDetails
fn clone(&self) -> AppDetails
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AppDetails
impl Debug for AppDetails
Source§impl<'de> Deserialize<'de> for AppDetails
impl<'de> Deserialize<'de> for AppDetails
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 AppDetails
impl JsonSchema for AppDetails
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