pub struct RustCodeGenerator {
pub version: String,
}Fields§
§version: StringImplementations§
Trait Implementations§
Source§impl CodeGenerator for RustCodeGenerator
impl CodeGenerator for RustCodeGenerator
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 RustCodeGenerator
impl RefUnwindSafe for RustCodeGenerator
impl Send for RustCodeGenerator
impl Sync for RustCodeGenerator
impl Unpin for RustCodeGenerator
impl UnsafeUnpin for RustCodeGenerator
impl UnwindSafe for RustCodeGenerator
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