Struct dbml_rs::analyzer::SemanticSchemaBlock
source · pub struct SemanticSchemaBlock {
pub project: Option<ProjectBlock>,
pub tables: Vec<TableBlock>,
pub table_groups: Vec<TableGroupBlock>,
pub refs: Vec<IndexedRefBlock>,
pub enums: Vec<EnumBlock>,
pub indexer: Indexer,
}Fields§
§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<IndexedRefBlock>Ref block.
enums: Vec<EnumBlock>Enums block.
indexer: IndexerIdentifier and alias indexer.
Implementations§
source§impl SemanticSchemaBlock
impl SemanticSchemaBlock
sourcepub fn get_table_refs(
&self,
table_ident: &TableIdent
) -> (Vec<IndexedRefBlock>, Vec<IndexedRefBlock>, Vec<IndexedRefBlock>)
pub fn get_table_refs( &self, table_ident: &TableIdent ) -> (Vec<IndexedRefBlock>, Vec<IndexedRefBlock>, Vec<IndexedRefBlock>)
Gets a table block’s relation (ref to, ref by, ref self).
Trait Implementations§
source§impl Clone for SemanticSchemaBlock
impl Clone for SemanticSchemaBlock
source§fn clone(&self) -> SemanticSchemaBlock
fn clone(&self) -> SemanticSchemaBlock
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 SemanticSchemaBlock
impl Debug for SemanticSchemaBlock
source§impl Default for SemanticSchemaBlock
impl Default for SemanticSchemaBlock
source§fn default() -> SemanticSchemaBlock
fn default() -> SemanticSchemaBlock
Returns the “default value” for a type. Read more
source§impl PartialEq<SemanticSchemaBlock> for SemanticSchemaBlock
impl PartialEq<SemanticSchemaBlock> for SemanticSchemaBlock
source§fn eq(&self, other: &SemanticSchemaBlock) -> bool
fn eq(&self, other: &SemanticSchemaBlock) -> bool
This method tests for
self and other values to be equal, and is used
by ==.