pub struct SchemaFile {
pub sources: Vec<SourceDefinition>,
pub models: Vec<ModelDefinition>,
pub snapshots: Vec<SnapshotDefinition>,
pub exposures: Vec<ExposureDefinition>,
pub semantic_models: Vec<SemanticModelDefinition>,
pub metrics: Vec<MetricDefinition>,
pub saved_queries: Vec<SavedQueryDefinition>,
}Expand description
Top-level schema YAML file (can contain sources, models, snapshots, exposures, semantic_models, metrics, saved_queries)
Fields§
§sources: Vec<SourceDefinition>§models: Vec<ModelDefinition>§snapshots: Vec<SnapshotDefinition>§exposures: Vec<ExposureDefinition>§semantic_models: Vec<SemanticModelDefinition>§metrics: Vec<MetricDefinition>§saved_queries: Vec<SavedQueryDefinition>Trait Implementations§
Source§impl Debug for SchemaFile
impl Debug for SchemaFile
Source§impl Default for SchemaFile
impl Default for SchemaFile
Source§fn default() -> SchemaFile
fn default() -> SchemaFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SchemaFile
impl<'de> Deserialize<'de> for SchemaFile
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 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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more