pub struct WindowAllowlistConfig {
Show 34 fields pub all: bool, pub create: bool, pub center: bool, pub request_user_attention: bool, pub set_resizable: bool, pub set_maximizable: bool, pub set_minimizable: bool, pub set_closable: 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_content_protected: 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 set_cursor_grab: bool, pub set_cursor_visible: bool, pub set_cursor_icon: bool, pub set_cursor_position: bool, pub set_ignore_cursor_events: bool, pub start_dragging: bool, pub print: bool,
}
Expand description

Allowlist for the window APIs.

See more: https://tauri.app/v1/api/config#windowallowlistconfig

Fields§

§all: bool

Use this flag to enable all window API features.

§create: bool

Allows dynamic window creation.

§center: bool

Allows centering the window.

§request_user_attention: bool

Allows requesting user attention on the window.

§set_resizable: bool

Allows setting the resizable flag of the window.

§set_maximizable: bool

Allows setting whether the window’s native maximize button is enabled or not.

§set_minimizable: bool

Allows setting whether the window’s native minimize button is enabled or not.

§set_closable: bool

Allows setting whether the window’s native close button is enabled or not.

§set_title: bool

Allows changing the window title.

§maximize: bool

Allows maximizing the window.

§unmaximize: bool

Allows unmaximizing the window.

§minimize: bool

Allows minimizing the window.

§unminimize: bool

Allows unminimizing the window.

§show: bool

Allows showing the window.

§hide: bool

Allows hiding the window.

§close: bool

Allows closing the window.

§set_decorations: bool

Allows setting the decorations flag of the window.

§set_always_on_top: bool

Allows setting the always_on_top flag of the window.

§set_content_protected: bool

Allows preventing the window contents from being captured by other apps.

§set_size: bool

Allows setting the window size.

§set_min_size: bool

Allows setting the window minimum size.

§set_max_size: bool

Allows setting the window maximum size.

§set_position: bool

Allows changing the position of the window.

§set_fullscreen: bool

Allows setting the fullscreen flag of the window.

§set_focus: bool

Allows focusing the window.

§set_icon: bool

Allows changing the window icon.

§set_skip_taskbar: bool

Allows setting the skip_taskbar flag of the window.

§set_cursor_grab: bool

Allows grabbing the cursor.

§set_cursor_visible: bool

Allows setting the cursor visibility.

§set_cursor_icon: bool

Allows changing the cursor icon.

§set_cursor_position: bool

Allows setting the cursor position.

§set_ignore_cursor_events: bool

Allows ignoring cursor events.

§start_dragging: bool

Allows start dragging on the window.

§print: bool

Allows opening the system dialog to print the window content.

Trait Implementations§

source§

impl Allowlist for WindowAllowlistConfig

source§

fn all_features() -> Vec<&'static str>

Returns all features associated with the allowlist struct.
source§

fn to_features(&self) -> Vec<&'static str>

Returns the tauri features enabled on this allowlist.
source§

impl Clone for WindowAllowlistConfig

source§

fn clone(&self) -> WindowAllowlistConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for WindowAllowlistConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for WindowAllowlistConfig

source§

fn default() -> WindowAllowlistConfig

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for WindowAllowlistConfig

source§

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<WindowAllowlistConfig> for WindowAllowlistConfig

source§

fn eq(&self, other: &WindowAllowlistConfig) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for WindowAllowlistConfig

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for WindowAllowlistConfig

source§

impl StructuralEq for WindowAllowlistConfig

source§

impl StructuralPartialEq for WindowAllowlistConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,