pub enum Value {
Id(DocumentId),
Null,
Int64(i64),
Float64(f64),
Boolean(bool),
String(String),
Bytes(Vec<u8>),
Array(Vec<Value>),
Set(BTreeSet<Value>),
Map(BTreeMap<Value, Value>),
Object(BTreeMap<String, Value>),
}
Expand description
A value that can be passed as an argument or returned from Convex functions. They correspond to the supported Convex types.
Variants§
Id(DocumentId)
Null
Int64(i64)
Float64(f64)
Boolean(bool)
String(String)
Bytes(Vec<u8>)
Array(Vec<Value>)
Set(BTreeSet<Value>)
Map(BTreeMap<Value, Value>)
Object(BTreeMap<String, Value>)
Trait Implementations§
source§impl From<DocumentId> for Value
impl From<DocumentId> for Value
source§fn from(v: DocumentId) -> Value
fn from(v: DocumentId) -> Value
Converts to this type from the input type.
source§impl Ord for Value
impl Ord for Value
source§impl PartialEq<Value> for Value
impl PartialEq<Value> for Value
source§impl PartialOrd<Value> for Value
impl PartialOrd<Value> for Value
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq 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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.