Struct dbml_rs::ast::schema::SchemaBlock
source · pub struct SchemaBlock<'a> {
pub span_range: Range<usize>,
pub input: &'a str,
pub project: Option<ProjectBlock>,
pub tables: Vec<TableBlock>,
pub table_groups: Vec<TableGroupBlock>,
pub refs: Vec<RefBlock>,
pub enums: Vec<EnumBlock>,
}Fields§
§span_range: Range<usize>§input: &'a strInput source content.
project: Option<ProjectBlock>Overall description of the project. This is optional. The file must contain one or zero ‘Project’ block.
tables: Vec<TableBlock>Table block.
table_groups: Vec<TableGroupBlock>TableGroup block.
refs: Vec<RefBlock>Ref block.
enums: Vec<EnumBlock>Enums block.
Implementations§
source§impl SchemaBlock<'_>
impl SchemaBlock<'_>
Trait Implementations§
source§impl<'a> Clone for SchemaBlock<'a>
impl<'a> Clone for SchemaBlock<'a>
source§fn clone(&self) -> SchemaBlock<'a>
fn clone(&self) -> SchemaBlock<'a>
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<'a> Debug for SchemaBlock<'a>
impl<'a> Debug for SchemaBlock<'a>
source§impl<'a> PartialEq<SchemaBlock<'a>> for SchemaBlock<'a>
impl<'a> PartialEq<SchemaBlock<'a>> for SchemaBlock<'a>
source§fn eq(&self, other: &SchemaBlock<'a>) -> bool
fn eq(&self, other: &SchemaBlock<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.