Enum okane_core::repl::MetadataValue
source · pub enum MetadataValue {
Text(String),
Expr(String),
}Expand description
MetadataValue represents the value in key-value pair used in Metadata.
Variants§
Text(String)
Regular string.
Expr(String)
Expression parsed properly prefixed by :: instead of :. Note it should be Expr not String.
Trait Implementations§
source§impl Debug for MetadataValue
impl Debug for MetadataValue
source§impl Display for MetadataValue
impl Display for MetadataValue
source§impl PartialEq for MetadataValue
impl PartialEq for MetadataValue
source§fn eq(&self, other: &MetadataValue) -> bool
fn eq(&self, other: &MetadataValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for MetadataValue
impl StructuralPartialEq for MetadataValue
Auto Trait Implementations§
impl RefUnwindSafe for MetadataValue
impl Send for MetadataValue
impl Sync for MetadataValue
impl Unpin for MetadataValue
impl UnwindSafe for MetadataValue
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