pub struct LintRuleConfigurationOption {
pub name: String,
pub default: String,
pub doc: &'static str,
}
Expand description
Represents a single configuration option.
This struct is used to do expose information about LintRule options as structure data via
LintRuleConfiguration::configuration_options
.
Fields§
§name: String
The name of the configuration option.
default: String
The stringified toml
value of the default value for this option.
doc: &'static str
The documentation for this option.
Trait Implementations§
Source§impl Clone for LintRuleConfigurationOption
impl Clone for LintRuleConfigurationOption
Source§fn clone(&self) -> LintRuleConfigurationOption
fn clone(&self) -> LintRuleConfigurationOption
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 LintRuleConfigurationOption
impl Debug for LintRuleConfigurationOption
Source§impl Deserialize<'static> for LintRuleConfigurationOption
impl Deserialize<'static> for LintRuleConfigurationOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LintRuleConfigurationOption
impl RefUnwindSafe for LintRuleConfigurationOption
impl Send for LintRuleConfigurationOption
impl Sync for LintRuleConfigurationOption
impl Unpin for LintRuleConfigurationOption
impl UnwindSafe for LintRuleConfigurationOption
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