pub struct GeneratorOptions {Show 14 fields
pub generator: GeneratorConfig,
pub other_generators: Vec<GeneratorConfig>,
pub schema_path: String,
pub dmmf: Document,
pub datasources: Vec<DataSource>,
pub datamodel: String,
pub version: String,
pub binary_paths: Option<BinaryPaths>,
pub postinstall: Option<bool>,
pub no_engine: Option<bool>,
pub no_hints: Option<bool>,
pub allow_no_models: Option<bool>,
pub env_paths: Option<EnvPaths>,
pub typed_sql: Option<Vec<SqlQueryOutput>>,
}Fields§
§generator: GeneratorConfig§other_generators: Vec<GeneratorConfig>§schema_path: String§dmmf: Document§datasources: Vec<DataSource>§datamodel: String§version: StringHash of the version
binary_paths: Option<BinaryPaths>§postinstall: Option<bool>§no_engine: Option<bool>§no_hints: Option<bool>§allow_no_models: Option<bool>§env_paths: Option<EnvPaths>§typed_sql: Option<Vec<SqlQueryOutput>>Trait Implementations§
Source§impl Clone for GeneratorOptions
impl Clone for GeneratorOptions
Source§fn clone(&self) -> GeneratorOptions
fn clone(&self) -> GeneratorOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneratorOptions
impl Debug for GeneratorOptions
Source§impl<'de> Deserialize<'de> for GeneratorOptions
impl<'de> Deserialize<'de> for GeneratorOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GeneratorOptions
impl RefUnwindSafe for GeneratorOptions
impl Send for GeneratorOptions
impl Sync for GeneratorOptions
impl Unpin for GeneratorOptions
impl UnwindSafe for GeneratorOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more