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
sourceimpl Allowlist for AllowlistConfig
impl Allowlist for AllowlistConfig
sourcefn all_features() -> Vec<&'static str>
fn all_features() -> Vec<&'static str>
Returns all features associated with the allowlist struct.
sourcefn to_features(&self) -> Vec<&'static str>
fn to_features(&self) -> Vec<&'static str>
Returns the tauri features enabled on this allowlist.
sourceimpl Clone for AllowlistConfig
impl Clone for AllowlistConfig
sourcefn clone(&self) -> AllowlistConfig
fn clone(&self) -> AllowlistConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for AllowlistConfig
impl Debug for AllowlistConfig
sourceimpl Default for AllowlistConfig
impl Default for AllowlistConfig
sourcefn default() -> AllowlistConfig
fn default() -> AllowlistConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AllowlistConfig
impl<'de> Deserialize<'de> for AllowlistConfig
sourcefn 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
sourceimpl PartialEq<AllowlistConfig> for AllowlistConfig
impl PartialEq<AllowlistConfig> for AllowlistConfig
sourcefn eq(&self, other: &AllowlistConfig) -> bool
fn eq(&self, other: &AllowlistConfig) -> bool
sourceimpl Serialize for AllowlistConfig
impl Serialize for AllowlistConfig
impl Eq for AllowlistConfig
impl StructuralEq for AllowlistConfig
impl StructuralPartialEq for AllowlistConfig
Auto Trait Implementations
impl RefUnwindSafe for AllowlistConfig
impl Send for AllowlistConfig
impl Sync for AllowlistConfig
impl Unpin for AllowlistConfig
impl UnwindSafe for AllowlistConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more