Skip to main content

compmd_host/
trust.rs

1//! The trust a configuration gives a pack.
2
3use serde::{Deserialize, Serialize};
4
5/// The trust a configuration gives a pack (spec ยง15).
6#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Deserialize, Serialize)]
7#[serde(rename_all = "lowercase")]
8pub enum Trust {
9    /// In a strict sandbox: the default.
10    #[default]
11    Strict,
12    /// In a permissive sandbox, with the network to its listed origins.
13    Permissive,
14    /// In the host's page: a folder pack built with the app only.
15    Trusted,
16}