surrealpatch/lib/src/sql/value/def.rs

10 lines
195 B
Rust
Raw Normal View History

use crate::sql::paths::ID;
use crate::sql::thing::Thing;
use crate::sql::value::Value;
impl Value {
pub(crate) fn def(&mut self, val: &Thing) {
self.put(ID.as_ref(), val.clone().into())
}
}