pub enum CustomValue {
Text(String),
Texts(Vec<String>),
Bool(bool),
Integer(i64),
}Expand description
One value of ETP’s customData (its DataValue), the forms a store has
been seen to attach to a dataspace. A floating-point value is not among them
on purpose: it would make every record that carries custom data lose Eq,
and none is known to be needed; a store meeting one refuses it by name.
Variants§
Text(String)
A text.
Texts(Vec<String>)
A list of texts (an access list, a list of legal tags).
Bool(bool)
A boolean.
Integer(i64)
An integer.
Trait Implementations§
Source§impl Clone for CustomValue
impl Clone for CustomValue
Source§impl Debug for CustomValue
impl Debug for CustomValue
impl Eq for CustomValue
Source§impl PartialEq for CustomValue
impl PartialEq for CustomValue
impl StructuralPartialEq for CustomValue
Auto Trait Implementations§
impl Freeze for CustomValue
impl RefUnwindSafe for CustomValue
impl Send for CustomValue
impl Sync for CustomValue
impl Unpin for CustomValue
impl UnsafeUnpin for CustomValue
impl UnwindSafe for CustomValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.