surrealpatch/lib/src/sql/value/def.rs
2023-05-06 01:15:03 +01:00

9 lines
195 B
Rust

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())
}
}