Struct tauri_utils::config::ShellAllowedCommand
source · pub struct ShellAllowedCommand {
pub name: String,
pub command: PathBuf,
pub args: ShellAllowedArgs,
pub sidecar: bool,
}
Expand description
A command allowed to be executed by the webview API.
Fields§
§name: String
The name for this allowed shell command configuration.
This name will be used inside of the webview API to call this command along with any specified arguments.
command: PathBuf
The command name.
It can start with a variable that resolves to a system base directory.
The variables are: $AUDIO
, $CACHE
, $CONFIG
, $DATA
, $LOCALDATA
, $DESKTOP
,
$DOCUMENT
, $DOWNLOAD
, $EXE
, $FONT
, $HOME
, $PICTURE
, $PUBLIC
, $RUNTIME
,
$TEMPLATE
, $VIDEO
, $RESOURCE
, $APP
, $LOG
, $TEMP
, $APPCONFIG
, $APPDATA
,
$APPLOCALDATA
, $APPCACHE
, $APPLOG
.
args: ShellAllowedArgs
The allowed arguments for the command execution.
sidecar: bool
If this command is a sidecar command.
Trait Implementations§
source§impl Clone for ShellAllowedCommand
impl Clone for ShellAllowedCommand
source§fn clone(&self) -> ShellAllowedCommand
fn clone(&self) -> ShellAllowedCommand
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 ShellAllowedCommand
impl Debug for ShellAllowedCommand
source§impl<'de> Deserialize<'de> for ShellAllowedCommand
impl<'de> Deserialize<'de> for ShellAllowedCommand
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 ShellAllowedCommand
impl PartialEq for ShellAllowedCommand
source§impl Serialize for ShellAllowedCommand
impl Serialize for ShellAllowedCommand
impl Eq for ShellAllowedCommand
impl StructuralPartialEq for ShellAllowedCommand
Auto Trait Implementations§
impl Freeze for ShellAllowedCommand
impl RefUnwindSafe for ShellAllowedCommand
impl Send for ShellAllowedCommand
impl Sync for ShellAllowedCommand
impl Unpin for ShellAllowedCommand
impl UnwindSafe for ShellAllowedCommand
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.