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 (const: unstable) · 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_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 inline_schema() -> bool
fn inline_schema() -> bool
$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 UnsafeUnpin 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
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more