pub struct CustomOption {
pub name: String,
pub option_type: String,
pub description: Option<String>,
pub values: Option<Vec<String>>,
pub conflicts_with: Option<Vec<String>>,
pub requires: Option<Vec<String>>,
}
Expand description
Custom option definition for configuration
Fields§
§name: String
Option name
option_type: String
Option type
description: Option<String>
Description
values: Option<Vec<String>>
Valid values (for enum types)
conflicts_with: Option<Vec<String>>
Conflicts with these options
requires: Option<Vec<String>>
Requires these options
Trait Implementations§
Source§impl Clone for CustomOption
impl Clone for CustomOption
Source§fn clone(&self) -> CustomOption
fn clone(&self) -> CustomOption
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 CustomOption
impl Debug for CustomOption
Source§impl<'de> Deserialize<'de> for CustomOption
impl<'de> Deserialize<'de> for CustomOption
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 CustomOption
impl RefUnwindSafe for CustomOption
impl Send for CustomOption
impl Sync for CustomOption
impl Unpin for CustomOption
impl UnwindSafe for CustomOption
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