Struct foxbox_thinkerbell::ast::Script [] [src]

pub struct Script<Ctx> where Ctx: Context {
    pub rules: Vec<Rule<Ctx>>,
    pub phantom: PhantomData<Ctx>,
}

A thinkerbell script.

Fields

rules

A set of rules, stating what must be done in which circumstance.

phantom

Trait Implementations

impl Parser<Script<UncheckedCtx>> for Script<UncheckedCtx>

fn description() -> String

fn parse(path: Path, source: &mut JSON) -> Result<Self, ParseError>

fn from_str(source: &str) -> Result<T, ParseError>

fn take(path: Path, source: &mut Value, field_name: &str) -> Result<T, ParseError>

fn take_opt(path: Path, source: &mut Value, field_name: &str) -> Option<Result<T, ParseError>>

fn take_vec_opt(path: Path, source: &mut Value, field_name: &str) -> Option<Result<Vec<T>, ParseError>>

fn take_vec(path: Path, source: &mut Value, field_name: &str) -> Result<Vec<T>, ParseError>