pub struct ConfigType {
pub type: Type,
pub if: Option<Expression>,
}Expand description
Every config option must have a type. There are only two basic types: tristate and string; the other types are based on these two. The type definition optionally accepts an input prompt.
Fields§
§type: Type§if: Option<Expression>Trait Implementations§
Source§impl Clone for ConfigType
impl Clone for ConfigType
Source§fn clone(&self) -> ConfigType
fn clone(&self) -> ConfigType
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 ConfigType
impl Debug for ConfigType
Source§impl<'de> Deserialize<'de> for ConfigType
impl<'de> Deserialize<'de> for ConfigType
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 Display for ConfigType
Available on crate feature display only.
impl Display for ConfigType
Available on crate feature
display only.Source§impl Hash for ConfigType
impl Hash for ConfigType
Source§impl PartialEq for ConfigType
impl PartialEq for ConfigType
Source§impl Serialize for ConfigType
impl Serialize for ConfigType
impl StructuralPartialEq for ConfigType
Auto Trait Implementations§
impl Freeze for ConfigType
impl RefUnwindSafe for ConfigType
impl Send for ConfigType
impl Sync for ConfigType
impl Unpin for ConfigType
impl UnwindSafe for ConfigType
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