pub struct DataFlowImporter;Expand description
Data Flow format importer
Implementations§
Source§impl DataFlowImporter
impl DataFlowImporter
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new Data Flow importer instance.
§Example
use data_modelling_sdk::import::dataflow::DataFlowImporter;
let importer = DataFlowImporter::new();Sourcepub fn import(&self, yaml_content: &str) -> Result<DataModel, ImportError>
pub fn import(&self, yaml_content: &str) -> Result<DataModel, ImportError>
Import Data Flow format YAML content and create DataModel.
§Arguments
yaml_content- Data Flow format YAML content as a string
§Returns
A DataModel containing the extracted nodes and relationships.
§Example
use data_modelling_sdk::import::dataflow::DataFlowImporter;
let importer = DataFlowImporter::new();
let yaml = r#"
nodes:
- name: user_events
metadata:
owner: "Data Engineering Team"
infrastructure_type: "Kafka"
"#;
let model = importer.import(yaml).unwrap();Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataFlowImporter
impl RefUnwindSafe for DataFlowImporter
impl Send for DataFlowImporter
impl Sync for DataFlowImporter
impl Unpin for DataFlowImporter
impl UnwindSafe for DataFlowImporter
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