Skip to main content

Module feature_runtime

Module feature_runtime 

Source
Expand description

Exposes the feature_runtime runtime module.

ยงExamples

โ“˜
use pharos_native::runtime::feature_runtime;
  • crate::runtime for 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ยง

AuthorizedPrivateAsset
Authorized private-asset location resolved from a declared ownership contract.
FeatureActionOutcome
Framework-neutral action result returned by feature execution.
FeatureRequestContext
Request-scoped values exposed to feature queries and actions.

Enumsยง

FeatureRuntimeError
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 ๐Ÿ”’