pub struct PythonCodeGenerator {
pub version: String,
pub package: Option<String>,
}Fields§
§version: String§package: Option<String>Python package for document-specific output. None derives it
(snake_case) from info.domain.
Implementations§
Trait Implementations§
Source§impl CodeGenerator for PythonCodeGenerator
impl CodeGenerator for PythonCodeGenerator
Source§fn target_name(&self) -> &'static str
fn target_name(&self) -> &'static str
Short, stable identifier used on the CLI (
--target <name>) and in
the target registry (etdl-cli’s TargetRegistry). Lowercase,
matches the --target value exactly (e.g. "rust", "java").Source§fn generate_all(
&self,
doc: &EtlDocument,
fault_tree_probs: &BTreeMap<String, f64>,
registry: &AsyncApiRegistry,
stem: &str,
_diagnostics: &mut Vec<Diagnostic>,
) -> Result<Vec<GeneratedFile>, String>
fn generate_all( &self, doc: &EtlDocument, fault_tree_probs: &BTreeMap<String, f64>, registry: &AsyncApiRegistry, stem: &str, _diagnostics: &mut Vec<Diagnostic>, ) -> Result<Vec<GeneratedFile>, String>
Generate this target’s output for
doc. stem is the input
document’s filename without extension (what today’s Rust target
already names its single output file after); other targets may use
it as a package/module root name instead of a literal filename.Auto Trait Implementations§
impl Freeze for PythonCodeGenerator
impl RefUnwindSafe for PythonCodeGenerator
impl Send for PythonCodeGenerator
impl Sync for PythonCodeGenerator
impl Unpin for PythonCodeGenerator
impl UnsafeUnpin for PythonCodeGenerator
impl UnwindSafe for PythonCodeGenerator
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