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.
args: ShellAllowedArgsThe allowed arguments for the command execution.
sidecar: boolIf 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 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more