pub struct FeatureConfig {
pub github_permalink: bool,
pub commands: bool,
}Expand description
Feature flags configuration.
Controls which link expansion features are enabled.
Missing fields fall back to FeatureConfig::default.
Fields§
§github_permalink: boolWhether GitHub Permalink expansion is enabled.
Defaults to true.
commands: boolWhether the mention-prefixed command system (version, ping, etc.) is enabled.
Defaults to true.
Trait Implementations§
Source§impl Debug for FeatureConfig
impl Debug for FeatureConfig
Source§impl Default for FeatureConfig
impl Default for FeatureConfig
Source§impl<'de> Deserialize<'de> for FeatureConfigwhere
FeatureConfig: Default,
impl<'de> Deserialize<'de> for FeatureConfigwhere
FeatureConfig: Default,
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 FeatureConfig
impl RefUnwindSafe for FeatureConfig
impl Send for FeatureConfig
impl Sync for FeatureConfig
impl Unpin for FeatureConfig
impl UnsafeUnpin for FeatureConfig
impl UnwindSafe for FeatureConfig
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