pub trait BatchCreatable:
Serialize
+ DeserializeOwned
+ Send
+ 'static {
// Required methods
fn table_name() -> &'static str;
fn set_id(&mut self, id: RecordId);
// Provided method
fn ensure_ownership_after_batch_create<'life0, 'async_trait>(
_created_row: Value,
_valence: &'life0 Valence,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait { ... }
}Expand description
Marker trait for models participating in batch create codegen.
Required Methods§
Provided Methods§
fn ensure_ownership_after_batch_create<'life0, 'async_trait>(
_created_row: Value,
_valence: &'life0 Valence,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".