pub struct SettingField {Show 15 fields
pub key: String,
pub label: String,
pub help: String,
pub kind: String,
pub backing: String,
pub path: Option<String>,
pub env_var: Option<String>,
pub default: Option<Value>,
pub options: Option<Vec<SettingOption>>,
pub min: Option<f64>,
pub max: Option<f64>,
pub placeholder: Option<String>,
pub advanced: bool,
pub secret: bool,
pub applies: String,
}Fields§
§key: String§label: String§help: String§kind: String“string” | “boolean” | “int” | “float” | “enum” | “string[]” | “secret”.
backing: String“config” | “env”.
path: Option<String>§env_var: Option<String>§default: Option<Value>§options: Option<Vec<SettingOption>>§min: Option<f64>§max: Option<f64>§placeholder: Option<String>§advanced: bool§secret: bool§applies: String“live” | “next-session” | “restart”.
Trait Implementations§
Source§impl Clone for SettingField
impl Clone for SettingField
Source§fn clone(&self) -> SettingField
fn clone(&self) -> SettingField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SettingField
impl Debug for SettingField
Source§impl<'de> Deserialize<'de> for SettingField
impl<'de> Deserialize<'de> for SettingField
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 SettingField
impl RefUnwindSafe for SettingField
impl Send for SettingField
impl Sync for SettingField
impl Unpin for SettingField
impl UnsafeUnpin for SettingField
impl UnwindSafe for SettingField
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