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
false
has no effect.
§Examples
-
"app-all": true
will make the hide endpoint be available regardless of whetherhide
is set tofalse
ortrue
in the allowlist.
Fields§
§all: bool
Use this flag to enable all API features.
fs: FsAllowlistConfig
File system API allowlist.
window: WindowAllowlistConfig
Window API allowlist.
shell: ShellAllowlistConfig
Shell API allowlist.
dialog: DialogAllowlistConfig
Dialog API allowlist.
http: HttpAllowlistConfig
HTTP API allowlist.
notification: NotificationAllowlistConfig
Notification API allowlist.
global_shortcut: GlobalShortcutAllowlistConfig
Global shortcut API allowlist.
os: OsAllowlistConfig
OS allowlist.
path: PathAllowlistConfig
Path API allowlist.
protocol: ProtocolAllowlistConfig
Custom protocol allowlist.
process: ProcessAllowlistConfig
Process API allowlist.
clipboard: ClipboardAllowlistConfig
Clipboard APIs allowlist.
app: AppAllowlistConfig
App 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§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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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.