pub struct PluginsConfig {
pub disabled: Option<bool>,
pub disabled_plugins: Option<Vec<String>>,
pub enabled_plugins: Option<Vec<String>>,
pub hot_deploy: Option<bool>,
pub hot_deploy_location: Option<String>,
pub install_location: Option<String>,
}
Expand description
Configuration of the plugin system.
Fields§
§disabled: Option<bool>
If true, the plugin system is disabled.
disabled_plugins: Option<Vec<String>>
The plugins which are disabled.
enabled_plugins: Option<Vec<String>>
The plugins which are enabled. If set, disabled_plugins will be ignored.
hot_deploy: Option<bool>
If true, hot deployment is enabled.
hot_deploy_location: Option<String>
The folder which is watched for hot deployment.
install_location: Option<String>
The folder which plugins are installed permanently.
Implementations§
Source§impl PluginsConfig
impl PluginsConfig
pub fn is_hot_deploy(&self) -> bool
pub fn get_hot_deploy_location(&self) -> Option<PathBuf>
pub fn get_install_location(&self) -> Option<PathBuf>
Trait Implementations§
Source§impl Clone for PluginsConfig
impl Clone for PluginsConfig
Source§fn clone(&self) -> PluginsConfig
fn clone(&self) -> PluginsConfig
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 PluginsConfig
impl Debug for PluginsConfig
Source§impl Default for PluginsConfig
impl Default for PluginsConfig
Source§impl<'de> Deserialize<'de> for PluginsConfig
impl<'de> Deserialize<'de> for PluginsConfig
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
Auto Trait Implementations§
impl Freeze for PluginsConfig
impl RefUnwindSafe for PluginsConfig
impl Send for PluginsConfig
impl Sync for PluginsConfig
impl Unpin for PluginsConfig
impl UnwindSafe for PluginsConfig
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