This commit is contained in:
JMARyA 2024-09-11 11:29:20 +02:00
parent 1e9efe4c12
commit f24e3f1e3c
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -11,9 +11,9 @@ You can derive the `Model` and `Referencable` traits for your struct. This will
use serde::{Deserialize, Serialize};
use mongod::Validate;
use mongod::Reference;
use mongod::derive::{Module, Referencable};
use mongod::derive::{Model, Referencable};
#[derive(Debug, Clone, Serialize, Deserialize, Module, Referencable)]
#[derive(Debug, Clone, Serialize, Deserialize, Model, Referencable)]
struct MyStruct {
_id: String,
name: String,