Struct tauri_utils::config::AllowlistConfig
source · [−]pub struct AllowlistConfig {Show 13 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,
}
Expand description
Allowlist configuration.
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.
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 more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AllowlistConfig) -> bool
fn ne(&self, other: &AllowlistConfig) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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