Enum datamodel_renderer::value::Value
source · pub enum Value<'a> {
Text(Text<Cow<'a, str>>),
Bytes(Text<Base64Display<'a>>),
Constant(Cow<'a, str>),
Array(Array<Value<'a>>),
Function(Function<'a>),
Env(Env<'a>),
IndexOps(IndexOps<'a>),
}
Expand description
A PSL value representation.
Variants§
Text(Text<Cow<'a, str>>)
A string value, quoted and escaped accordingly.
Bytes(Text<Base64Display<'a>>)
A byte value, quoted and base64-encoded.
Constant(Cow<'a, str>)
A constant value without quoting.
Array(Array<Value<'a>>)
An array of values.
Function(Function<'a>)
A function has a name, and optionally named parameters.
Env(Env<'a>)
A value can be read from the environment.
IndexOps(IndexOps<'a>)
An index ops definition.
Trait Implementations§
source§impl<'a> From<&'a GeneratorConfigValue> for Value<'a>
impl<'a> From<&'a GeneratorConfigValue> for Value<'a>
source§fn from(value: &'a GeneratorConfigValue) -> Self
fn from(value: &'a GeneratorConfigValue) -> Self
Converts to this type from the input type.
source§impl<'a> From<Value<'a>> for FunctionParam<'a>
impl<'a> From<Value<'a>> for FunctionParam<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> Send for Value<'a>
impl<'a> Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnwindSafe for Value<'a>
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