#[non_exhaustive]pub enum ScriptingLanguage {
Bash,
Python,
Php,
JavaScript,
Perl,
Lua,
Ruby,
Groovy,
Other(ScriptRunConfig),
}Expand description
Enum type representing a scripting language.
ScriptingLanguage provides run configuration for 8 most popular scripting languages.
If you want to use other language, see ScriptingLanguage::Other.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bash
Executes script with bash command.
Python
Executes script with python command.
Php
Executes script with php -f command.
JavaScript
Executes script with node command.
Perl
Executes script with perl command.
Lua
Executes script with lua command.
Ruby
Executes script with ruby command.
Groovy
Executes script with groovy command.
Other(ScriptRunConfig)
Executes script with provided configuration. See ScriptRunConfig docs.
Trait Implementations§
Source§impl Clone for ScriptingLanguage
impl Clone for ScriptingLanguage
Source§fn clone(&self) -> ScriptingLanguage
fn clone(&self) -> ScriptingLanguage
Returns a duplicate 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 ScriptingLanguage
impl Debug for ScriptingLanguage
Source§impl Default for ScriptingLanguage
impl Default for ScriptingLanguage
Source§fn default() -> ScriptingLanguage
fn default() -> ScriptingLanguage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScriptingLanguage
impl<'de> Deserialize<'de> for ScriptingLanguage
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 From<ScriptingLanguage> for ScriptRunConfig
impl From<ScriptingLanguage> for ScriptRunConfig
Source§fn from(value: ScriptingLanguage) -> Self
fn from(value: ScriptingLanguage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScriptingLanguage
impl PartialEq for ScriptingLanguage
Source§impl Serialize for ScriptingLanguage
impl Serialize for ScriptingLanguage
impl Eq for ScriptingLanguage
impl StructuralPartialEq for ScriptingLanguage
Auto Trait Implementations§
impl Freeze for ScriptingLanguage
impl RefUnwindSafe for ScriptingLanguage
impl Send for ScriptingLanguage
impl Sync for ScriptingLanguage
impl Unpin for ScriptingLanguage
impl UnwindSafe for ScriptingLanguage
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