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: String
The name of the application.
Example: name = "my-app"
version: String
The application version. This should be a valid semver version.
Example: version = "1.0.0"
description: String
A 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 the application must be compatible.
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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for AppDetails
impl JsonSchema for AppDetails
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations§
impl Freeze for AppDetails
impl RefUnwindSafe for AppDetails
impl Send for AppDetails
impl Sync for AppDetails
impl Unpin for AppDetails
impl UnwindSafe for AppDetails
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
Mutably borrows from an owned value. Read more