Enum owoof::types::ValueRef [−][src]
pub enum ValueRef<'a> {
Entity(Entity),
Attribute(&'a AttributeRef),
Text(&'a str),
Integer(i64),
Float(f64),
Boolean(bool),
Uuid(Uuid),
Blob(&'a [u8]),
}
Expand description
A borrowing version of Value
Variants
Entity(Entity)
Tuple Fields
0: Entity
Attribute(&'a AttributeRef)
Tuple Fields
0: &'a AttributeRef
Text(&'a str)
Tuple Fields
0: &'a str
Integer(i64)
Tuple Fields
0: i64
Float(f64)
Tuple Fields
0: f64
Boolean(bool)
Tuple Fields
0: bool
Uuid(Uuid)
Tuple Fields
0: Uuid
Blob(&'a [u8])
Trait Implementations
Opposite of FromStr
and FromBorrowedStr
. Requires the serde_json
feature.
Formatting rules are something like:
- #entity-id
- :some/attribute
- “text is a json string”
- some-hyphenated-uuid
Performs the conversion.
Opposite of fmt::Display
. Requires the serde_json
feature.
Converts Rust value to SQLite value
Auto Trait Implementations
impl<'a> RefUnwindSafe for ValueRef<'a>
impl<'a> UnwindSafe for ValueRef<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more