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. The allowlist is a translation of the Cargo allowlist features.
§Notes
- Endpoints that don’t have their own allowlist option are enabled by default.
- There is only “opt-in”, no “opt-out”. Setting an option to
falsehas no effect.
§Examples
-
"app-all": truewill make the hide endpoint be available regardless of whetherhideis set tofalseortruein the allowlist.
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 for AllowlistConfig
impl PartialEq 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 ==.source§impl Serialize for AllowlistConfig
impl Serialize for AllowlistConfig
impl Eq for AllowlistConfig
impl StructuralPartialEq for AllowlistConfig
Auto Trait Implementations§
impl Freeze for AllowlistConfig
impl RefUnwindSafe for AllowlistConfig
impl Send for AllowlistConfig
impl Sync for AllowlistConfig
impl Unpin for AllowlistConfig
impl UnwindSafe for AllowlistConfig
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.