Expand description
Exposes the feature_runtime runtime module.
ยงExamples
โ
use pharos_native::runtime::feature_runtime;ยงRelated
crate::runtimefor sibling modules in the same crate. Runtime query and rendering support for compiled declarative features.
Modulesยง
- logical ๐
- Declared feature execution through the configured logical database adapter.
- media_
input ๐ - Bounded image parts for opt-in declarative actions, stored outside app artifacts.
Structsยง
- Authorized
Private Asset - Authorized private-asset location resolved from a declared ownership contract.
- Feature
Action Outcome - Framework-neutral action result returned by feature execution.
- Feature
Request Context - Request-scoped values exposed to feature queries and actions.
Enumsยง
- Feature
Runtime Error - Stable failure set returned by feature loading, validation, rendering, and execution.
Constantsยง
- MAX_
QUERY_ ๐FILTERS - MAX_
QUERY_ ๐ROWS
Functionsยง
- action_
fallback_ redirect - Builds the fallback redirect target for a feature action.
- action_
redirect_ ๐path - Resolves only declared path segments in a mutation redirect.
- actor_
roles - Loads the effective roles for an authenticated actor.
- append_
query_ ๐with_ dependencies - Appends a query and its declared query dependencies in executable order.
- apply_
default_ ๐input_ hooks - Performs apply default input hooks.
- apply_
derived_ ๐input_ hooks - Applies bounded derived-input hooks before typed validation.
- apply_
input_ ๐normalization_ hooks - Applies one bounded string-normalization hook sequence to validated action input.
- artifact_
root ๐ - Resolves the built artifact root used by feature contracts and templates.
- authorize_
private_ asset - Authorizes access to a private asset through the configured backend.
- declared_
input_ ๐format_ valid - Validates optional contact/link formats without changing existing string inputs.
- declared_
input_ ๐preflight_ errors - Parses and validates URL-encoded action fields against an inline input contract.
- dotted_
value ๐ - Loads all declared relational entities and their allowed fields. Reads a dotted object path without permitting array or prototype-style traversal.
- evaluate_
guard_ ๐contract - Rejects a transaction when one declared aggregate or existence guard fails. Performs evaluate guard contract.
- execute_
feature_ action - Executes one declared feature action.
- execute_
feature_ json_ action - execute_
feature_ ๐queries - Executes declared queries through the configured operation interface.
- execute_
feature_ query_ rows_ json - Builds template parameters for a feature query result.
- execute_
feature_ ๐transaction - Executes a declared transaction through the configured operation interface.
- feature_
field_ ๐validation_ code - feature_
json_ ๐payload_ for_ query - Executes one declared feature action and returns a generated API JSON item response.
- generated_
values ๐ - Collects named opaque values referenced by one transaction declaration. Performs generated values.
- guard_
binding_ ๐rows - Converts one bound query result into the row-set shape used by aggregate guards. Performs guard binding rows.
- guard_
bounds_ ๐satisfied - Evaluates generic numeric comparisons for one declared guard metric. Performs guard bounds satisfied.
- insert_
actor_ ๐role_ nav_ params - json_
scalar_ ๐input - Converts one JSON scalar request value into the string input form used by validators.
- layout_
role_ ๐nav_ params - load_
feature - Loads one compiled feature contract from the app artifact tree.
- load_
feature_ ๐action - Loads one compiled feature action contract by its stable identifier.
- load_
json ๐ - Loads one bounded JSON document from the built application artifact.
- manifest_
declared_ ๐template_ params - missing_
template_ ๐keys - path_
parameter_ ๐value - Builds the path-parameter map available to a feature request.
- path_
parameters - payment_
provider_ ๐render_ state_ root - populate_
generated_ ๐values - Generates all transaction-scoped opaque values before the database transaction starts. Performs populate generated values.
- query_
binding_ ๐value - Converts one query result into the binding value used by later dependent queries.
- query_
parameters - Builds the query-parameter map available to a feature request.
- query_
render_ ๐params - Renders selected query rows through app-owned row templates and scalar outputs.
- record_
private_ ๐asset_ authorization - Records one declared protected-asset authorization before streaming starts. Records private asset authorization.
- referenced_
queries ๐ - Collects every named query binding referenced by a transaction declaration. Performs referenced queries.
- render_
feature_ page_ body - Renders a feature page body.
- render_
feature_ page_ body_ with_ error - Renders a feature page body with an attached error state.
- render_
feature_ page_ body_ with_ error_ and_ params - Renders a feature page body with additional caller-supplied template params.
- render_
feature_ page_ html - Renders a full feature page.
- render_
feature_ page_ html_ with_ error - Renders a full feature page with an attached error state.
- render_
query_ params - request_
header_ ๐value - Resolves one request header without accepting folded lines.
- resolve_
value ๐ - Resolves one declared request, subject, binding, or literal value.
- resolve_
value_ ๐with_ budget - Bounds recursive declared value evaluation before resolving request or query bindings.
- role_
fragment_ ๐key - role_
nav_ ๐fragment_ html - scalar_
value_ ๐to_ text - Performs scalar value to text.
- selected_
contract_ ๐variant - Selects one contract variant using a previously validated scalar request value.
- sql_
identifier ๐ - Ensures a database identifier cannot change statement structure.
- timestamp_
before_ ๐seconds_ utc - transaction_
operations ๐ - Flattens map or ordered-step transaction syntax into one deterministic operation list. Performs transaction operations.
- validated_
action_ ๐input - validation_
report ๐ - Returns one bounded validation report payload for a feature action rejection.
- validation_
report_ ๐with_ field_ errors