Struct tauri_utils::config::DialogAllowlistConfig
source · pub struct DialogAllowlistConfig {
pub all: bool,
pub open: bool,
pub save: bool,
pub message: bool,
pub ask: bool,
pub confirm: bool,
}
Expand description
Allowlist for the dialog APIs.
Fields
all: bool
Use this flag to enable all dialog API features.
open: bool
Allows the API to open a dialog window to pick files.
save: bool
Allows the API to open a dialog window to pick where to save files.
message: bool
Allows the API to show a message dialog window.
ask: bool
Allows the API to show a dialog window with Yes/No buttons.
confirm: bool
Allows the API to show a dialog window with Ok/Cancel buttons.
Trait Implementations
sourceimpl Allowlist for DialogAllowlistConfig
impl Allowlist for DialogAllowlistConfig
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 DialogAllowlistConfig
impl Clone for DialogAllowlistConfig
sourcefn clone(&self) -> DialogAllowlistConfig
fn clone(&self) -> DialogAllowlistConfig
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 DialogAllowlistConfig
impl Debug for DialogAllowlistConfig
sourceimpl Default for DialogAllowlistConfig
impl Default for DialogAllowlistConfig
sourcefn default() -> DialogAllowlistConfig
fn default() -> DialogAllowlistConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for DialogAllowlistConfig
impl<'de> Deserialize<'de> for DialogAllowlistConfig
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<DialogAllowlistConfig> for DialogAllowlistConfig
impl PartialEq<DialogAllowlistConfig> for DialogAllowlistConfig
sourcefn eq(&self, other: &DialogAllowlistConfig) -> bool
fn eq(&self, other: &DialogAllowlistConfig) -> bool
sourceimpl Serialize for DialogAllowlistConfig
impl Serialize for DialogAllowlistConfig
impl Eq for DialogAllowlistConfig
impl StructuralEq for DialogAllowlistConfig
impl StructuralPartialEq for DialogAllowlistConfig
Auto Trait Implementations
impl RefUnwindSafe for DialogAllowlistConfig
impl Send for DialogAllowlistConfig
impl Sync for DialogAllowlistConfig
impl Unpin for DialogAllowlistConfig
impl UnwindSafe for DialogAllowlistConfig
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