bankai/molecules/types
Types
pub type BoundNode {
BoundNode(
name: String,
title: String,
description: String,
kind: types.TaskKind,
priority: Int,
labels: List(String),
parent: option.Option(String),
)
}
Constructors
-
BoundNode( name: String, title: String, description: String, kind: types.TaskKind, priority: Int, labels: List(String), parent: option.Option(String), )
pub type Edge {
Edge(from: String, to: String, relation: types.RelationType)
}
Constructors
-
Edge(from: String, to: String, relation: types.RelationType)
pub type Node {
Node(
name: String,
title: String,
description: String,
kind: types.TaskKind,
priority: Int,
labels: List(String),
parent: option.Option(String),
)
}
Constructors
-
Node( name: String, title: String, description: String, kind: types.TaskKind, priority: Int, labels: List(String), parent: option.Option(String), )
pub type Variable {
Variable(
name: String,
required: Bool,
default: option.Option(String),
)
}
Constructors
-
Variable( name: String, required: Bool, default: option.Option(String), )
Values
pub fn bind(
template: Template,
raw_bindings: List(String),
) -> Result(#(List(#(String, String)), List(BoundNode)), String)
pub fn canonical_source(template: Template) -> String
pub fn decode_template(
source: String,
) -> Result(Template, String)