Struct tauri_utils::config::AllowlistConfig
source · pub struct AllowlistConfig {Show 14 fields
pub all: bool,
pub fs: FsAllowlistConfig,
pub window: WindowAllowlistConfig,
pub shell: ShellAllowlistConfig,
pub dialog: DialogAllowlistConfig,
pub http: HttpAllowlistConfig,
pub notification: NotificationAllowlistConfig,
pub global_shortcut: GlobalShortcutAllowlistConfig,
pub os: OsAllowlistConfig,
pub path: PathAllowlistConfig,
pub protocol: ProtocolAllowlistConfig,
pub process: ProcessAllowlistConfig,
pub clipboard: ClipboardAllowlistConfig,
pub app: AppAllowlistConfig,
}Expand description
Allowlist configuration.
Fields§
§all: boolUse this flag to enable all API features.
fs: FsAllowlistConfigFile system API allowlist.
window: WindowAllowlistConfigWindow API allowlist.
shell: ShellAllowlistConfigShell API allowlist.
dialog: DialogAllowlistConfigDialog API allowlist.
http: HttpAllowlistConfigHTTP API allowlist.
notification: NotificationAllowlistConfigNotification API allowlist.
global_shortcut: GlobalShortcutAllowlistConfigGlobal shortcut API allowlist.
os: OsAllowlistConfigOS allowlist.
path: PathAllowlistConfigPath API allowlist.
protocol: ProtocolAllowlistConfigCustom protocol allowlist.
process: ProcessAllowlistConfigProcess API allowlist.
clipboard: ClipboardAllowlistConfigClipboard APIs allowlist.
app: AppAllowlistConfigApp APIs allowlist.
Trait Implementations§
source§impl Allowlist for AllowlistConfig
impl Allowlist for AllowlistConfig
source§fn all_features() -> Vec<&'static str>
fn all_features() -> Vec<&'static str>
Returns all features associated with the allowlist struct.
source§fn to_features(&self) -> Vec<&'static str>
fn to_features(&self) -> Vec<&'static str>
Returns the tauri features enabled on this allowlist.
source§impl Clone for AllowlistConfig
impl Clone for AllowlistConfig
source§fn clone(&self) -> AllowlistConfig
fn clone(&self) -> AllowlistConfig
Returns a copy 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 AllowlistConfig
impl Debug for AllowlistConfig
source§impl Default for AllowlistConfig
impl Default for AllowlistConfig
source§fn default() -> AllowlistConfig
fn default() -> AllowlistConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AllowlistConfig
impl<'de> Deserialize<'de> for AllowlistConfig
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 PartialEq<AllowlistConfig> for AllowlistConfig
impl PartialEq<AllowlistConfig> for AllowlistConfig
source§fn eq(&self, other: &AllowlistConfig) -> bool
fn eq(&self, other: &AllowlistConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.