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§fn clone(&self) -> SettingDef
fn clone(&self) -> SettingDef
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 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<SettingDef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SettingDef, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SettingDef
Auto Trait Implementations§
impl Forget for SettingDef
impl Freeze for SettingDef
impl Move 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