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
.
args: ShellAllowedArgs
The allowed arguments for the command execution.
sidecar: bool
If this command is a sidecar command.
Trait Implementations
sourceimpl Clone for ShellAllowedCommand
impl Clone for ShellAllowedCommand
sourcefn clone(&self) -> ShellAllowedCommand
fn clone(&self) -> ShellAllowedCommand
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 ShellAllowedCommand
impl Debug for ShellAllowedCommand
sourceimpl<'de> Deserialize<'de> for ShellAllowedCommand
impl<'de> Deserialize<'de> for ShellAllowedCommand
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<ShellAllowedCommand> for ShellAllowedCommand
impl PartialEq<ShellAllowedCommand> for ShellAllowedCommand
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ShellAllowedCommand) -> bool
fn ne(&self, other: &ShellAllowedCommand) -> bool
This method tests for !=
.
sourceimpl Serialize for ShellAllowedCommand
impl Serialize for ShellAllowedCommand
impl Eq for ShellAllowedCommand
impl StructuralEq for ShellAllowedCommand
impl StructuralPartialEq for ShellAllowedCommand
Auto Trait Implementations
impl RefUnwindSafe for ShellAllowedCommand
impl Send for ShellAllowedCommand
impl Sync for ShellAllowedCommand
impl Unpin for ShellAllowedCommand
impl UnwindSafe for ShellAllowedCommand
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