pub enum Value {
String(String),
Bool(bool),
Integer(u64),
Identifier(String),
Array(Vec<Value>),
}Expand description
A literal or identifier value parsed from an Achitekfile.
Values are used by prompt defaults, choice arrays, and dependency
comparisons. The parser preserves identifiers separately from strings so
callers can distinguish "database" from database.
Variants§
String(String)
A double-quoted string literal with supported escape sequences decoded.
Bool(bool)
A true or false literal.
Integer(u64)
A non-negative integer literal.
Identifier(String)
An unquoted identifier.
Array(Vec<Value>)
An array of values.
Trait Implementations§
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin 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