pub struct SnapApp<'a> {Show 20 fields
pub adapter: Option<Adapter>,
pub autostart: Option<Cow<'a, str>>,
pub command: Option<Cow<'a, str>>,
pub command_chain: Vec<Cow<'a, str>>,
pub common_id: Option<Cow<'a, str>>,
pub daemon: Option<Daemon>,
pub desktop: Option<Cow<'a, str>>,
pub environment: HashMap<Cow<'a, str>, Cow<'a, str>>,
pub extensions: Vec<Cow<'a, str>>,
pub plugs: Vec<Cow<'a, str>>,
pub slots: Vec<Cow<'a, str>>,
pub stop_command: Option<Cow<'a, str>>,
pub post_stop_command: Option<Cow<'a, str>>,
pub stop_timeout: Option<Cow<'a, str>>,
pub timer: Option<Cow<'a, str>>,
pub restart_condition: Option<RestartCondition>,
pub socket: HashMap<Cow<'a, str>, Cow<'a, str>>,
pub socket_mode: Option<i64>,
pub listen_stream: Option<Cow<'a, str>>,
pub passthrough: HashMap<Cow<'a, str>, Cow<'a, str>>,
}
Expand description
Represents the apps.<app-name>
entries in a snapcraft.yaml
.
Fields§
§adapter: Option<Adapter>
§autostart: Option<Cow<'a, str>>
§command: Option<Cow<'a, str>>
§command_chain: Vec<Cow<'a, str>>
§common_id: Option<Cow<'a, str>>
§daemon: Option<Daemon>
§desktop: Option<Cow<'a, str>>
§environment: HashMap<Cow<'a, str>, Cow<'a, str>>
§extensions: Vec<Cow<'a, str>>
§plugs: Vec<Cow<'a, str>>
§slots: Vec<Cow<'a, str>>
§stop_command: Option<Cow<'a, str>>
§post_stop_command: Option<Cow<'a, str>>
§stop_timeout: Option<Cow<'a, str>>
§timer: Option<Cow<'a, str>>
§restart_condition: Option<RestartCondition>
§socket: HashMap<Cow<'a, str>, Cow<'a, str>>
§socket_mode: Option<i64>
§listen_stream: Option<Cow<'a, str>>
§passthrough: HashMap<Cow<'a, str>, Cow<'a, str>>
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for SnapApp<'a>
impl<'de, 'a> Deserialize<'de> for SnapApp<'a>
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
impl<'a> Eq for SnapApp<'a>
impl<'a> StructuralPartialEq for SnapApp<'a>
Auto Trait Implementations§
impl<'a> Freeze for SnapApp<'a>
impl<'a> RefUnwindSafe for SnapApp<'a>
impl<'a> Send for SnapApp<'a>
impl<'a> Sync for SnapApp<'a>
impl<'a> Unpin for SnapApp<'a>
impl<'a> UnwindSafe for SnapApp<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.