Skip to main content

Crate appstruct_runtime

Crate appstruct_runtime 

Source
Expand description

Stable contracts shared by generated AppStruct backends.

Modules§

bigint
Lossless JSON transport for business bigint fields. Rust and PostgreSQL still use i64.
query
resource

Structs§

Actor
BackgroundTaskExit
BulkDeleteInput
BulkFailure
BulkResult
BulkUpdateInput
CsvError
ListQuery
ListResponse
ModuleDescriptor
ModuleEvent
ModulePlan
ModuleRuntime
ServiceHandles
ShutdownError
ShutdownFailure
ShutdownReport
StartupError
SupervisedTaskHandle

Enums§

BackgroundTaskExitKind
FilterExpression
A bounded, field-based filter tree. Values use the same textual codecs as query parameters.
FilterOperator
Operators exposed by generated resource queries.
ListMeta
ModulePhase
ShutdownFailureKind

Constants§

CSV_EXPORT_PAGE_SIZE
DEFAULT_SERVICE_SHUTDOWN_TIMEOUT
MAX_BULK_ITEMS
MAX_CSV_EXPORT_ROWS
MAX_CSV_IMPORT_ROWS
MAX_LIST_PAGE
Maximum accepted offset-pagination page number.
MAX_LIST_PAGE_SIZE
Maximum accepted offset-pagination page size.
MAX_SEARCH_CHARS
Maximum Unicode scalar values accepted for a resource search term.
RUNTIME_API_VERSION
Version of the generated-backend/runtime contract.

Traits§

BackgroundTaskObserver
ModuleObserver
ModuleStarter
ServiceHandle

Functions§

bulk_failure
bulk_request_size_is_valid
csv_cell
csv_escape
csv_json_value
decode_cursor
deserialize_patch
Preserve the difference between an omitted patch field and explicit JSON null.
encode_cursor
like_contains_pattern
Builds a SQL LIKE pattern for substring search with %, _, and \ escaped.
list_page_is_valid
Returns whether offset pagination arguments are within the generated API bounds.
parse_csv_rows
Parses CSV input into rows and decoded field values.
parse_revision_etag
revision_etag
search_term_is_valid
Returns whether a resource search term fits the generated API bound.
sha256_hex
sha256_tagged
supports_runtime_api
validate_browser_origin
Validates an exact HTTP(S) origin used for CORS, CSRF, and frontend links.

Type Aliases§

TenantId