pub struct Registration {
pub label: String,
pub description: String,
pub icon: String,
pub modal: bool,
pub tools: Vec<Tool>,
pub actions: Vec<Action>,
pub commands: Vec<Command>,
pub length_keys: Vec<String>,
pub bought_kinds: Vec<String>,
pub radial: Vec<String>,
}Expand description
What a bench declares once, when it is loaded (describe).
Fields§
§label: String§description: String§icon: StringAn icon of the package (icons/<name>.svg) or of the design set.
modal: boolAn edit-session bench: entering it remembers the bench to return to.
tools: Vec<Tool>§actions: Vec<Action>Keyboard actions beside the tools; a key sends Event::Action.
commands: Vec<Command>Commands scripts and agents may call; each id starts with the package id.
length_keys: Vec<String>Numeric fields of feature data the property panel shows in the document’s length unit.
bought_kinds: Vec<String>Feature kinds of the package’s own whose bodies are bought rather than made (catalog hardware): the parts list marks them bought until the user says otherwise, and exports and the slicer leave them out.
radial: Vec<String>The tools and commands, by id, the radial menu offers while the bench is active, clockwise from the top, up to eight. The user can choose others in Preferences; empty leaves the bench’s most used tools.