Skip to main content

Factory

Trait Factory 

Source
pub trait Factory: Model + Sized {
    // Required method
    fn factory_default(seq: u64) -> Self;
}
Available on crate features model-mysql or model-postgres or model-sqlite only.
Expand description

A model a factory can build; implemented by #[derive(Factory)].

Required Methods§

Source

fn factory_default(seq: u64) -> Self

The instance with default values for sequence number seq (≥ 1), before overrides.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§