Skip to main content

Crate openjd_model

Crate openjd_model 

Source
Expand description

Open Job Description model library for Rust.

Provides parsing, validation, and job creation for OpenJD templates conforming to the 2023-09 specification.

Re-exports§

pub use job::create_job;
pub use job::step_dependency_graph;
pub use job::step_param_space;
pub use error::ModelError;
pub use error::DiagnosticSpan;
pub use error::ErrorDetail;
pub use error::PathElement;
pub use error::ValidationError;
pub use error::ValidationErrors;
pub use job::create_job::build_symbol_table;
pub use job::create_job::convert_environment;
pub use job::create_job::create_job;
pub use job::create_job::evaluate_let_bindings;
pub use job::create_job::merge_job_parameter_definitions;
pub use job::create_job::preprocess_job_parameters;
pub use job::create_job::MergedParameterDefinition;
pub use job::create_job::PathParameterOptions;
pub use step_dependency_graph::StepDependencyGraph;
pub use step_param_space::StepParameterSpaceIterator;
pub use types::CallerLimits;
pub use types::DataFlow;
pub use types::EndOfLine;
pub use types::Extensions;
pub use types::FileType;
pub use types::JobParameterInputValues;
pub use types::JobParameterType;
pub use types::JobParameterValue;
pub use types::JobParameterValues;
pub use types::ModelExtension;
pub use types::ModelProfile;
pub use types::ObjectType;
pub use types::SpecificationRevision;
pub use types::TaskParameterSet;
pub use types::TaskParameterType;
pub use types::TaskParameterValue;
pub use types::TemplateSpecificationVersion;
pub use types::ValidationContext;

Modules§

capabilities
Standard capability definitions for the Open Job Description specification.
error
Error types for the OpenJD model library.
format_string
Format string parsing and resolution.
job
Instantiated job types — the result of create_job().
parse
Template parsing: YAML/JSON decoding and dispatch by specificationVersion.
symbol_table
Hierarchical symbol table for expression evaluation.
types
Core types shared across specification versions.

Structs§

EnvironmentTemplate
§1.2 EnvironmentTemplate
FormatString
JobTemplate
§1.1 JobTemplate
SymbolTable
Hierarchical symbol table mapping names to values or nested tables.

Enums§

DecodedTemplate
Auto-detect template type and decode.
DocumentType
Document format.
JobParameterDefinition
§2 JobParameterDefinition — discriminated union on type field.
TaskParameterDefinition
§3.4.1 TaskParameterDefinition — discriminated union on type.

Functions§

decode_environment_template
Decode and validate an environment template from a YAML value.
decode_job_template
Decode and validate a job template from a YAML value.
decode_template
Auto-detect whether a template is a job or environment template and decode it.