pub struct ConfigInfo {
pub dir: String,
pub name: String,
}Expand description
Where a plugin’s settings are: the site’s .config/ directory, whose
layout is the plugin’s business (the recommended one is
<vendor>/<name>/), and the plugin’s name in the site config.
Fields§
§dir: StringAbsolute path of .config/ (next to lsdocs.toml), whether or
not it exists.
name: StringThe plugin’s name in the site config (name = "..."), so that two
instances of a plugin can keep separate settings.
Trait Implementations§
Source§impl Clone for ConfigInfo
impl Clone for ConfigInfo
Source§impl Debug for ConfigInfo
impl Debug for ConfigInfo
Source§impl Default for ConfigInfo
impl Default for ConfigInfo
Source§impl<'de> Deserialize<'de> for ConfigInfo
impl<'de> Deserialize<'de> for ConfigInfo
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 PartialEq for ConfigInfo
impl PartialEq for ConfigInfo
Source§impl Serialize for ConfigInfo
impl Serialize for ConfigInfo
impl StructuralPartialEq for ConfigInfo
Auto Trait Implementations§
impl Forget for ConfigInfo
impl Freeze for ConfigInfo
impl Move for ConfigInfo
impl RefUnwindSafe for ConfigInfo
impl Send for ConfigInfo
impl Sync for ConfigInfo
impl Unpin for ConfigInfo
impl UnsafeUnpin for ConfigInfo
impl UnwindSafe for ConfigInfo
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