pub struct PluginInitDirs {
pub config: PathBuf,
pub cache: PathBuf,
}Expand description
Directories a plugin is supposed to use for configuration and data caching.
Fields§
§config: PathBufPath to a directory where the plugin will find its config.
This typically includes a config.json and further required files.
This directory can be read-only.
cache: PathBufPath to a directory where the plugin is allowed to write data for caching.
This directory needs to be read-and-write.
Trait Implementations§
Source§impl Debug for PluginInitDirs
impl Debug for PluginInitDirs
Source§impl<'de> Deserialize<'de> for PluginInitDirs
impl<'de> Deserialize<'de> for PluginInitDirs
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 PluginInitDirs
impl RefUnwindSafe for PluginInitDirs
impl Send for PluginInitDirs
impl Sync for PluginInitDirs
impl Unpin for PluginInitDirs
impl UnwindSafe for PluginInitDirs
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