Struct tauri_utils::config::WindowAllowlistConfig
source · [−]pub struct WindowAllowlistConfig {Show 25 fields
pub all: bool,
pub create: bool,
pub center: bool,
pub request_user_attention: bool,
pub set_resizable: bool,
pub set_title: bool,
pub maximize: bool,
pub unmaximize: bool,
pub minimize: bool,
pub unminimize: bool,
pub show: bool,
pub hide: bool,
pub close: bool,
pub set_decorations: bool,
pub set_always_on_top: bool,
pub set_size: bool,
pub set_min_size: bool,
pub set_max_size: bool,
pub set_position: bool,
pub set_fullscreen: bool,
pub set_focus: bool,
pub set_icon: bool,
pub set_skip_taskbar: bool,
pub start_dragging: bool,
pub print: bool,
}Expand description
Allowlist for the window APIs.
Fields
all: boolUse this flag to enable all window API features.
create: boolAllows dynamic window creation.
center: boolAllows centering the window.
request_user_attention: boolAllows requesting user attention on the window.
set_resizable: boolAllows setting the resizable flag of the window.
set_title: boolAllows changing the window title.
maximize: boolAllows maximizing the window.
unmaximize: boolAllows unmaximizing the window.
minimize: boolAllows minimizing the window.
unminimize: boolAllows unminimizing the window.
show: boolAllows showing the window.
hide: boolAllows hiding the window.
close: boolAllows closing the window.
set_decorations: boolAllows setting the decorations flag of the window.
set_always_on_top: boolAllows setting the always_on_top flag of the window.
set_size: boolAllows setting the window size.
set_min_size: boolAllows setting the window minimum size.
set_max_size: boolAllows setting the window maximum size.
set_position: boolAllows changing the position of the window.
set_fullscreen: boolAllows setting the fullscreen flag of the window.
set_focus: boolAllows focusing the window.
set_icon: boolAllows changing the window icon.
set_skip_taskbar: boolAllows setting the skip_taskbar flag of the window.
start_dragging: boolAllows start dragging on the window.
print: boolAllows opening the system dialog to print the window content.
Trait Implementations
sourceimpl Allowlist for WindowAllowlistConfig
impl Allowlist for WindowAllowlistConfig
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 WindowAllowlistConfig
impl Clone for WindowAllowlistConfig
sourcefn clone(&self) -> WindowAllowlistConfig
fn clone(&self) -> WindowAllowlistConfig
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 WindowAllowlistConfig
impl Debug for WindowAllowlistConfig
sourceimpl Default for WindowAllowlistConfig
impl Default for WindowAllowlistConfig
sourcefn default() -> WindowAllowlistConfig
fn default() -> WindowAllowlistConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for WindowAllowlistConfig
impl<'de> Deserialize<'de> for WindowAllowlistConfig
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<WindowAllowlistConfig> for WindowAllowlistConfig
impl PartialEq<WindowAllowlistConfig> for WindowAllowlistConfig
sourcefn eq(&self, other: &WindowAllowlistConfig) -> bool
fn eq(&self, other: &WindowAllowlistConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &WindowAllowlistConfig) -> bool
fn ne(&self, other: &WindowAllowlistConfig) -> bool
This method tests for !=.
sourceimpl Serialize for WindowAllowlistConfig
impl Serialize for WindowAllowlistConfig
impl Eq for WindowAllowlistConfig
impl StructuralEq for WindowAllowlistConfig
impl StructuralPartialEq for WindowAllowlistConfig
Auto Trait Implementations
impl RefUnwindSafe for WindowAllowlistConfig
impl Send for WindowAllowlistConfig
impl Sync for WindowAllowlistConfig
impl Unpin for WindowAllowlistConfig
impl UnwindSafe for WindowAllowlistConfig
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