Skip to main content

AxonStoreDefinition

Struct AxonStoreDefinition 

Source
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: String

The 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: String

v2.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: String

v1.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: String

v2.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.

Trait Implementations§

Source§

impl Debug for AxonStoreDefinition

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more