pub struct RbtProjectConfig {
pub name: String,
pub version: String,
pub models_dir: PathBuf,
pub target_path: PathBuf,
pub layers: HashMap<String, LayerConfig>,
}Expand description
Project-wide rbt_project.yml configuration schema.
Fields§
§name: String§version: String§models_dir: PathBuf§target_path: PathBuf§layers: HashMap<String, LayerConfig>Implementations§
Source§impl RbtProjectConfig
impl RbtProjectConfig
Sourcepub fn load(project_dir: &Path) -> Result<Self>
pub fn load(project_dir: &Path) -> Result<Self>
Loads rbt_project.yml from project directory or returns default configuration.
Sourcepub fn resolve_model_target_path(
&self,
project_dir: &Path,
model_name: &str,
layer: ModelLayer,
ext: &str,
) -> PathBuf
pub fn resolve_model_target_path( &self, project_dir: &Path, model_name: &str, layer: ModelLayer, ext: &str, ) -> PathBuf
Resolves destination output directory path for a model based on its layer configuration.
Sourcepub fn resolve_model_target_dir(
&self,
project_dir: &Path,
model_name: &str,
layer: ModelLayer,
) -> PathBuf
pub fn resolve_model_target_dir( &self, project_dir: &Path, model_name: &str, layer: ModelLayer, ) -> PathBuf
Directory target for Iceberg-style table roots (no file extension).
Trait Implementations§
Source§impl Clone for RbtProjectConfig
impl Clone for RbtProjectConfig
Source§fn clone(&self) -> RbtProjectConfig
fn clone(&self) -> RbtProjectConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RbtProjectConfig
impl Debug for RbtProjectConfig
Source§impl Default for RbtProjectConfig
impl Default for RbtProjectConfig
Source§impl<'de> Deserialize<'de> for RbtProjectConfig
impl<'de> Deserialize<'de> for RbtProjectConfig
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
impl Eq for RbtProjectConfig
Source§impl PartialEq for RbtProjectConfig
impl PartialEq for RbtProjectConfig
Source§impl Serialize for RbtProjectConfig
impl Serialize for RbtProjectConfig
impl StructuralPartialEq for RbtProjectConfig
Auto Trait Implementations§
impl Freeze for RbtProjectConfig
impl RefUnwindSafe for RbtProjectConfig
impl Send for RbtProjectConfig
impl Sync for RbtProjectConfig
impl Unpin for RbtProjectConfig
impl UnsafeUnpin for RbtProjectConfig
impl UnwindSafe for RbtProjectConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.