#[non_exhaustive]pub enum EditValue {
String(String),
Integer(i64),
Boolean(bool),
StringList(Vec<String>),
Enum(String),
Json(Value),
}Expand description
Value provided with an edit command.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
String(String)
Integer(i64)
Boolean(bool)
StringList(Vec<String>)
Enum(String)
For settings whose domain is a small enum value (e.g.
ServiceStrategy → "first_match").
Json(Value)
For completeness — callers can pass a raw JSON value when the spec-defined key set is extended by stage-3 tooling. Currently reserved; no stage-1 setting uses it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EditValue
impl RefUnwindSafe for EditValue
impl Send for EditValue
impl Sync for EditValue
impl Unpin for EditValue
impl UnsafeUnpin for EditValue
impl UnwindSafe for EditValue
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