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: StringThe 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: PathBufThe 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: ShellAllowedArgsThe allowed arguments for the command execution.
sidecar: boolIf 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<ShellAllowedCommand> for ShellAllowedCommand
impl PartialEq<ShellAllowedCommand> for ShellAllowedCommand
source§fn eq(&self, other: &ShellAllowedCommand) -> bool
fn eq(&self, other: &ShellAllowedCommand) -> bool
This method tests for
self and other values to be equal, and is used
by ==.