Enum smart_config::value::Value
source · pub enum Value {
Null,
Bool(bool),
Number(Number),
String(StrValue),
Array(Vec<WithOrigin>),
Object(Map),
}
Expand description
JSON value with additional origin information.
Variants§
Null
null
.
Bool(bool)
Boolean value.
Number(Number)
Numeric value.
String(StrValue)
String value.
Array(Vec<WithOrigin>)
Array of values.
Object(Map)
Object / map of values.
Implementations§
Trait Implementations§
source§impl From<Vec<WithOrigin>> for Value
impl From<Vec<WithOrigin>> for Value
source§fn from(array: Vec<WithOrigin>) -> Self
fn from(array: Vec<WithOrigin>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)