pub enum NewValue {
Int(i128),
Sint(i64),
Float(f64),
Bool(bool),
Null,
Str(String),
Bytes(Vec<u8>),
}Expand description
A new value for a field, parsed from the CLI syntax (see parse_value).
Variants§
Int(i128)
A decimal integer: 42, -2.
Sint(i64)
A zigzag (sint32/sint64) integer: sint:-2.
Float(f64)
A floating-point number: 1.5, float:1e-3, float:NaN.
Bool(bool)
Null
null (CBOR and MessagePack only).
Str(String)
A UTF-8 string: "text" (JSON escapes) or str:text.
Bytes(Vec<u8>)
Raw bytes: hex:0a0b, b64:CgM=.
Trait Implementations§
impl StructuralPartialEq for NewValue
Auto Trait Implementations§
impl Forget for NewValue
impl Freeze for NewValue
impl Move for NewValue
impl RefUnwindSafe for NewValue
impl Send for NewValue
impl Sync for NewValue
impl Unpin for NewValue
impl UnsafeUnpin for NewValue
impl UnwindSafe for NewValue
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