pub struct YamlConfigParser { /* private fields */ }Expand description
YAML配置解析器
Implementations§
Source§impl YamlConfigParser
impl YamlConfigParser
Sourcepub fn new(config: WorkflowConfig) -> Self
pub fn new(config: WorkflowConfig) -> Self
创建新的配置解析器
Sourcepub fn parse(&self) -> Result<Vec<ExecutionNode>>
pub fn parse(&self) -> Result<Vec<ExecutionNode>>
解析配置,生成执行节点列表
Sourcepub fn get_env_vars(&self) -> HashMap<String, String>
pub fn get_env_vars(&self) -> HashMap<String, String>
获取环境变量
Sourcepub fn get_flow_vars(&self) -> HashMap<String, Value>
pub fn get_flow_vars(&self) -> HashMap<String, Value>
获取流程变量
Sourcepub fn get_workflow_name(&self) -> String
pub fn get_workflow_name(&self) -> String
获取工作流名称
Sourcepub fn get_workflow_version(&self) -> String
pub fn get_workflow_version(&self) -> String
获取工作流版本
Source§impl YamlConfigParser
impl YamlConfigParser
Sourcepub fn parse_full(&self) -> Result<ParseResult>
pub fn parse_full(&self) -> Result<ParseResult>
解析配置并返回完整结果
Trait Implementations§
Auto Trait Implementations§
impl Freeze for YamlConfigParser
impl RefUnwindSafe for YamlConfigParser
impl Send for YamlConfigParser
impl Sync for YamlConfigParser
impl Unpin for YamlConfigParser
impl UnwindSafe for YamlConfigParser
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