pub struct AxonStoreDefinition {Show 13 fields
pub name: String,
pub backend: String,
pub connection: String,
pub resource_ref: String,
pub confidence_floor: Option<f64>,
pub isolation: String,
pub on_breach: String,
pub capability: String,
pub class: String,
pub column_schema: Option<StoreColumnSchema>,
pub loc: Loc,
pub leading_trivia: Vec<Trivia>,
pub trailing_trivia: Vec<Trivia>,
}Fields§
§name: String§backend: String§connection: StringThe DSN — the field that actually runs today. connection: →
resolve_dsn → a real sqlx pool, with no global-pool fallback.
v2.67.0: still accepted (the live deployment depends on it), but it
warns, and a store declared this way is INELIGIBLE for
lease / observe / reconcile. You cannot govern what you did not
declare.
resource_ref: Stringv2.67.0 — the resource this store runs on. When present, the store
DERIVES its DSN, its pool size and its sharing discipline from the
resource. The derivation is the point; a bare reference would be the
nominal link this cycle exists to avoid.
confidence_floor: Option<f64>§isolation: String§on_breach: String§capability: Stringv1.30.0 (D11) — Pillar IV: the capability slug required to
access this store. Empty = no capability gate. Validated at
parse time against the closed slug grammar (shared with the
v1.23.0 requires: grammar).
class: Stringv2.48.0 — the secret-class prefix of a backend: secrets
metadata store (doctrine rotation_without_revelation). A
dotted lowercase identifier, e.g. crm — the store enumerates
the tenant’s secrets whose keys live under <class>. (so
class: crm covers crm.hubspot, crm.zoho.acct_x, …).
REQUIRED when backend: secrets and FORBIDDEN otherwise
(axon-T900): a class-less secrets store would enumerate the
tenant’s ENTIRE secret namespace (llm.* included) — that
over-broad view is unrepresentable, not discouraged.
column_schema: Option<StoreColumnSchema>v1.31.0 (D1) — the OPTIONAL column-schema declaration. Three
closed forms (inline / manifest-ref / env-var); None means the
37.x runtime+deploy path applies verbatim (D5 absolute). The
v1.31.0 / v1.31.0 StoreColumnProof pass consumes this; the v1.31.0
CLI exports it. For a backend: secrets store this is always
None in the AST (declaring one is axon-T900) — the fixed
metadata schema is synthesized at IR time
(store_schema::secrets_metadata_schema).
loc: Loc§leading_trivia: Vec<Trivia>v1.5.2 — leading comment trivia attached to this declaration (comments preceding the declaration’s first token, since the previous declaration or file start). Empty by default.
trailing_trivia: Vec<Trivia>v1.5.2 — trailing comment trivia (same line as the declaration’s last effective token). Empty by default.