Enum cudb::value::Value [−][src]
Expand description
Variant type for (data) document values.
Variants
Id(String)
Special type for unique identification, similar to MongoDB’s _id
.
Tuple Fields of Id
0: String
Int32(i32)
Fixed-size integer type.
Tuple Fields of Int32
0: i32
String(String)
Arbitrary-length strings.
Tuple Fields of String
0: String
Dict(Document)
Recursive documents (hashtables).
Tuple Fields of Dict
0: Document
Array types.
Implementations
Check if the provided Value is the same variant as the current Value. A variant is a component of an enum.
Based on: https://stackoverflow.com/a/32554326
Returns inclusive minimum for range search on value.
See Constraint::generate_value_ranges() for more details.
Returns inclusive maximum for range search on value.
See Constraint::generate_value_ranges() for more details. Note that this imposes an arbitrary maximum limit for unbounded values, such as strings.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
We can only compare like scalar types (i.e., not documents nor arrays).
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Value
impl UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more