Struct tauri_utils::config::RemoteDomainAccessScope
source · pub struct RemoteDomainAccessScope {
pub scheme: Option<String>,
pub domain: String,
pub windows: Vec<String>,
pub plugins: Vec<String>,
pub enable_tauri_api: bool,
}
Expand description
External command access definition.
Fields§
§scheme: Option<String>
The URL scheme to allow. By default, all schemas are allowed.
domain: String
The domain to allow.
windows: Vec<String>
The list of window labels this scope applies to.
plugins: Vec<String>
The list of plugins that are allowed in this scope.
The names should be without the tauri-plugin-
prefix, for example "store"
for tauri-plugin-store
.
enable_tauri_api: bool
Enables access to the Tauri API.
Trait Implementations§
source§impl Clone for RemoteDomainAccessScope
impl Clone for RemoteDomainAccessScope
source§fn clone(&self) -> RemoteDomainAccessScope
fn clone(&self) -> RemoteDomainAccessScope
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RemoteDomainAccessScope
impl Debug for RemoteDomainAccessScope
source§impl<'de> Deserialize<'de> for RemoteDomainAccessScope
impl<'de> Deserialize<'de> for RemoteDomainAccessScope
source§fn 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
source§impl PartialEq for RemoteDomainAccessScope
impl PartialEq for RemoteDomainAccessScope
source§impl Serialize for RemoteDomainAccessScope
impl Serialize for RemoteDomainAccessScope
impl Eq for RemoteDomainAccessScope
impl StructuralPartialEq for RemoteDomainAccessScope
Auto Trait Implementations§
impl Freeze for RemoteDomainAccessScope
impl RefUnwindSafe for RemoteDomainAccessScope
impl Send for RemoteDomainAccessScope
impl Sync for RemoteDomainAccessScope
impl Unpin for RemoteDomainAccessScope
impl UnwindSafe for RemoteDomainAccessScope
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.