pub enum Value {
Quantity(Quantity),
Boolean(bool),
String(String),
DateTime(DateTime<FixedOffset>),
FunctionReference(FunctionReference),
}
Variants§
Quantity(Quantity)
Boolean(bool)
String(String)
DateTime(DateTime<FixedOffset>)
A DateTime with an associated offset used when pretty printing
FunctionReference(FunctionReference)
Implementations§
source§impl Value
impl Value
pub fn unsafe_as_quantity(&self) -> &Quantity
pub fn unsafe_as_bool(&self) -> bool
pub fn unsafe_as_string(&self) -> &str
pub fn unsafe_as_datetime(&self) -> &DateTime<FixedOffset>
pub fn unsafe_as_function_reference(&self) -> &FunctionReference
Trait Implementations§
source§impl PartialEq for Value
impl PartialEq for Value
source§impl PrettyPrint for Value
impl PrettyPrint for Value
fn pretty_print(&self) -> Markup
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
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