pub struct OcConfig {
pub name: Option<String>,
pub creator: Option<String>,
pub base_state: OcBaseState,
pub on: Vec<ObjectId>,
pub off: Vec<ObjectId>,
pub intents: Vec<String>,
pub order: Vec<OcOrderItem>,
pub list_mode: OcListMode,
pub rb_groups: Vec<Vec<ObjectId>>,
pub locked: Vec<ObjectId>,
}Expand description
One Optional Content Configuration Dictionary (Table 101).
The catalog’s /OCProperties /D is one of these; alternate
configurations in /OCProperties /Configs are also surfaced
using this same shape.
Fields§
§name: Option<String>/Name — display name for this configuration.
creator: Option<String>/Creator — application that created this configuration.
base_state: OcBaseState/BaseState — initial state ON / OFF / Unchanged.
on: Vec<ObjectId>/ON — group ids whose state shall be ON after BaseState is
applied (overrides BaseState=OFF for these).
off: Vec<ObjectId>/OFF — group ids whose state shall be OFF after BaseState is
applied (overrides BaseState=ON for these).
intents: Vec<String>/Intent — names this configuration’s state filter recognises
(default [View]; empty [] ⇒ no groups participate).
order: Vec<OcOrderItem>/Order — UI tree for “Layers”-style listings (Table 101).
OcOrderItem::Group(id) for individual groups,
OcOrderItem::Subtree { label, items } for nested
collections (with an optional first-element text label).
list_mode: OcListMode/ListMode — AllPages (default) or VisiblePages.
rb_groups: Vec<Vec<ObjectId>>/RBGroups — radio-button group sets (each inner array is a
mutually-exclusive set; turning one on turns the others off).
locked: Vec<ObjectId>/Locked — group ids the UI shall not let the user toggle.