pub struct SchemaFile {
pub datasource: Option<Datasource>,
pub generators: Vec<Generator>,
pub enums: Vec<EnumDef>,
pub models: Vec<ModelDef>,
}Expand description
The top-level schema file.
Fields§
§datasource: Option<Datasource>§generators: Vec<Generator>§enums: Vec<EnumDef>§models: Vec<ModelDef>Trait Implementations§
Source§impl Clone for SchemaFile
impl Clone for SchemaFile
Source§fn clone(&self) -> SchemaFile
fn clone(&self) -> SchemaFile
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SchemaFile
impl RefUnwindSafe for SchemaFile
impl Send for SchemaFile
impl Sync for SchemaFile
impl Unpin for SchemaFile
impl UnsafeUnpin for SchemaFile
impl UnwindSafe for SchemaFile
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