pub struct Extra(/* private fields */);Expand description
Configuration for the Config::extra field.
It defines some extra fields that can be used to store arbitrary values usable in plugins.
The fields are represented as toml::Value to allow all types to be serialized.
It is recommended to use a table by plugin (e.g. the encre-css-icons’s plugin uses the
icons key containing a table grouping all configuration fields).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Extra
impl<'de> Deserialize<'de> for Extra
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
impl StructuralPartialEq for Extra
Auto Trait Implementations§
impl Freeze for Extra
impl RefUnwindSafe for Extra
impl Send for Extra
impl Sync for Extra
impl Unpin for Extra
impl UnwindSafe for Extra
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