pub struct SnapcraftApp {Show 31 fields
pub command: Option<String>,
pub daemon: Option<String>,
pub stop_mode: Option<String>,
pub plugs: Option<Vec<String>>,
pub environment: Option<BTreeMap<String, Value>>,
pub args: Option<String>,
pub restart_condition: Option<String>,
pub adapter: Option<String>,
pub after: Option<Vec<String>>,
pub aliases: Option<Vec<String>>,
pub autostart: Option<String>,
pub before: Option<Vec<String>>,
pub bus_name: Option<String>,
pub command_chain: Option<Vec<String>>,
pub common_id: Option<String>,
pub completer: Option<String>,
pub desktop: Option<String>,
pub extensions: Option<Vec<String>>,
pub install_mode: Option<String>,
pub passthrough: Option<BTreeMap<String, Value>>,
pub post_stop_command: Option<String>,
pub refresh_mode: Option<String>,
pub reload_command: Option<String>,
pub restart_delay: Option<String>,
pub slots: Option<Vec<String>>,
pub sockets: Option<BTreeMap<String, Value>>,
pub start_timeout: Option<String>,
pub stop_command: Option<String>,
pub stop_timeout: Option<String>,
pub timer: Option<String>,
pub watchdog_timeout: Option<String>,
}Fields§
§command: Option<String>Command to run (relative to snap root).
daemon: Option<String>Daemon type: simple, forking, oneshot, notify, dbus.
stop_mode: Option<String>How to stop the daemon: sigterm, sigkill, etc.
plugs: Option<Vec<String>>Interface plugs the app needs.
environment: Option<BTreeMap<String, Value>>Environment variables for the app (supports string, integer, and boolean values).
args: Option<String>Additional arguments passed to the command.
restart_condition: Option<String>Restart condition: on-failure, always, on-success, on-abnormal, on-abort, on-watchdog, never.
adapter: Option<String>Snap adapter type: “none” or “full” (default: “full”).
after: Option<Vec<String>>Services that must start before this app.
aliases: Option<Vec<String>>Alternative names for the command.
autostart: Option<String>Desktop file for autostart.
before: Option<Vec<String>>Services that must start after this app.
bus_name: Option<String>D-Bus well-known bus name.
command_chain: Option<Vec<String>>Wrapper commands run before the main command.
common_id: Option<String>AppStream metadata common ID.
completer: Option<String>Path to bash completion script relative to snap.
desktop: Option<String>Path to .desktop file relative to snap.
extensions: Option<Vec<String>>Snap extensions to apply.
install_mode: Option<String>Installation mode: “enable” or “disable”.
passthrough: Option<BTreeMap<String, Value>>Arbitrary YAML passed through to snap.yaml.
post_stop_command: Option<String>Command to run after daemon stops.
refresh_mode: Option<String>Refresh behavior: “endure” or “restart”.
reload_command: Option<String>Command to reload daemon config.
restart_delay: Option<String>Delay between restarts (duration string).
slots: Option<Vec<String>>Interface slots this app provides.
sockets: Option<BTreeMap<String, Value>>Socket definitions map.
start_timeout: Option<String>Start timeout duration string.
stop_command: Option<String>Command to gracefully stop the daemon.
stop_timeout: Option<String>Stop timeout duration string.
timer: Option<String>Timer definition (systemd timer syntax).
watchdog_timeout: Option<String>Watchdog timeout duration string.
Trait Implementations§
Source§impl Clone for SnapcraftApp
impl Clone for SnapcraftApp
Source§fn clone(&self) -> SnapcraftApp
fn clone(&self) -> SnapcraftApp
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 SnapcraftApp
impl Debug for SnapcraftApp
Source§impl Default for SnapcraftApp
impl Default for SnapcraftApp
Source§fn default() -> SnapcraftApp
fn default() -> SnapcraftApp
Source§impl<'de> Deserialize<'de> for SnapcraftAppwhere
SnapcraftApp: Default,
impl<'de> Deserialize<'de> for SnapcraftAppwhere
SnapcraftApp: Default,
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 SnapcraftApp
impl JsonSchema for SnapcraftApp
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