pub struct SettingInfo {
pub key: String,
pub value: String,
pub type_name: String,
pub description: String,
pub default: String,
}Expand description
Information about a configuration setting for display purposes.
Fields§
§key: StringThe setting key in dot-notation
value: StringCurrent value as a string
type_name: StringExpected type name
description: StringHuman-readable description
default: StringDefault value as a string
Implementations§
Source§impl SettingInfo
impl SettingInfo
Sourcepub fn new(key: SettingKey, current_value: &SettingValue) -> Self
pub fn new(key: SettingKey, current_value: &SettingValue) -> Self
Create a new SettingInfo from a key and current value.
Trait Implementations§
Source§impl Clone for SettingInfo
impl Clone for SettingInfo
Source§fn clone(&self) -> SettingInfo
fn clone(&self) -> SettingInfo
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 SettingInfo
impl Debug for SettingInfo
Source§impl<'de> Deserialize<'de> for SettingInfo
impl<'de> Deserialize<'de> for SettingInfo
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 SettingInfo
impl RefUnwindSafe for SettingInfo
impl Send for SettingInfo
impl Sync for SettingInfo
impl Unpin for SettingInfo
impl UnwindSafe for SettingInfo
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