diff --git a/src/model/reference.rs b/src/model/reference.rs index 263af54..4074e0b 100644 --- a/src/model/reference.rs +++ b/src/model/reference.rs @@ -80,6 +80,12 @@ impl Validate for Reference { } } +impl Into for Reference { + fn into(self) -> serde_json::Value { + serde_json::Value::String(self.0) + } +} + /// A trait that allows you to get a reference to a `Model` pub trait Referencable { /// The name of this model's collection