This commit is contained in:
JMARyA 2024-07-21 03:13:51 +02:00
parent b3004b0db3
commit e3c6740b1a
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -80,6 +80,12 @@ impl Validate for Reference {
}
}
impl Into<serde_json::Value> 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