Enum tauri::scope::ShellScopeAllowedArg
source · pub enum ShellScopeAllowedArg {
Fixed(String),
Var {
validator: Regex,
},
}
Expand description
A configured argument to a scoped shell command.
Variants§
Fixed(String)
A non-configurable argument.
Var
An argument with a value to be evaluated at runtime, must pass a regex validation.
Implementations§
Trait Implementations§
source§impl Clone for ScopeAllowedArg
impl Clone for ScopeAllowedArg
source§fn clone(&self) -> ScopeAllowedArg
fn clone(&self) -> ScopeAllowedArg
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ScopeAllowedArg
impl Send for ScopeAllowedArg
impl Sync for ScopeAllowedArg
impl Unpin for ScopeAllowedArg
impl UnwindSafe for ScopeAllowedArg
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