Skip to content

struct

Companion

pub struct Companion {
    pub file: String,
    pub scope: bool,
    pub static_params: bool,
    pub interactive: bool,
    pub title: bool,
}

What a .rs companion beside a .weft file provides.

Fields

file

pub file: String

Relative to the project root.

scope

pub scope: bool

pub fn scope(…) -> Scope.

static_params

pub static_params: bool

pub fn static_params() -> Vec<Params> (pages).

interactive

pub interactive: bool

pub const INTERACTIVE: bool (pages).

title

pub title: bool

pub fn title(params: &Params) -> Option<String> (pages).

Trait implementations