pub struct SettingDef {
pub key: String,
pub kind: Kind,
pub scopes: Vec<Scope>,
pub overridable: bool,
pub apply: Apply,
pub default: Option<Value>,
pub section: String,
pub doc: String,
pub process: Process,
}Expand description
The registry’s description of one setting.
Fields§
§key: StringThe TOML path, e.g. embed.remote.endpoint.
kind: KindWhat the value must look like.
scopes: Vec<Scope>The scopes it may be set in; the first is its home.
overridable: boolWhether a device may override a value set in a wider scope.
apply: ApplyWhen a change takes effect.
default: Option<Value>The value in effect when no scope sets it.
section: StringThe heading it is listed under.
doc: StringOne-line help text.
process: ProcessThe process that owns it; an older peer’s definitions read as the bridge’s.
Implementations§
Trait Implementations§
Source§impl Clone for SettingDef
impl Clone for SettingDef
Source§impl Debug for SettingDef
impl Debug for SettingDef
Source§impl<'de> Deserialize<'de> for SettingDef
impl<'de> Deserialize<'de> for SettingDef
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 PartialEq for SettingDef
impl PartialEq for SettingDef
Source§impl Serialize for SettingDef
impl Serialize for SettingDef
impl StructuralPartialEq for SettingDef
Auto Trait Implementations§
impl Freeze for SettingDef
impl RefUnwindSafe for SettingDef
impl Send for SettingDef
impl Sync for SettingDef
impl Unpin for SettingDef
impl UnsafeUnpin for SettingDef
impl UnwindSafe for SettingDef
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