pub struct WorkflowSchemaGenerator {
pub include_optional: bool,
pub include_examples: bool,
pub include_descriptions: bool,
}Expand description
Schema generator for workflows
Fields§
§include_optional: boolInclude optional fields
include_examples: boolInclude examples
include_descriptions: boolInclude descriptions
Implementations§
Source§impl WorkflowSchemaGenerator
impl WorkflowSchemaGenerator
Sourcepub fn generate_workflow_schema(&self) -> JsonSchema
pub fn generate_workflow_schema(&self) -> JsonSchema
Generate JSON Schema for a workflow
Sourcepub fn generate_node_type_schema(&self, node_kind: &NodeKind) -> JsonSchema
pub fn generate_node_type_schema(&self, node_kind: &NodeKind) -> JsonSchema
Generate schema for a specific node type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorkflowSchemaGenerator
impl RefUnwindSafe for WorkflowSchemaGenerator
impl Send for WorkflowSchemaGenerator
impl Sync for WorkflowSchemaGenerator
impl Unpin for WorkflowSchemaGenerator
impl UnwindSafe for WorkflowSchemaGenerator
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