pub enum Value {
Str(String, Span),
Num(String, Span),
Bool(bool, Span),
Ident(String, Span),
Env(String, Span),
Func {
name: String,
args: Vec<Value>,
span: Span,
},
Array(Vec<Value>, Span),
}Expand description
A value written in an attribute argument or a config entry.
Variants§
Str(String, Span)
"text"
Num(String, Span)
A number, kept as written so integer and float stay distinguishable.
Bool(bool, Span)
true / false
Ident(String, Span)
A bare identifier, e.g. USER or Cascade.
Env(String, Span)
env("DATABASE_URL")
Func
uuid7(), dbgenerated("...")
Fields
Array(Vec<Value>, Span)
[a, b]
Implementations§
Trait Implementations§
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