toasty_driver_integration_suite/scenarios/
deferred_document.rs1use crate::prelude::*;
2
3scenario! {
4 #[derive(Debug, toasty::Model)]
5 struct Document {
6 #[key]
7 #[auto]
8 id: uuid::Uuid,
9
10 title: String,
11 body: toasty::Deferred<String>,
12 }
13
14 async fn setup(test: &mut Test) -> toasty::Db {
15 test.setup_db(models!(Document)).await
16 }
17}