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