Expand description
§shaperail-core
Shared foundation types for the Shaperail framework.
This crate defines the core data structures that all other Shaperail crates consume: resource definitions, field types, endpoint specs, error handling, and project configuration.
Structs§
- Auth
Config - Authentication configuration.
- Cache
Config - Redis cache configuration.
- Cache
Spec - Cache configuration for an endpoint.
- Channel
Definition - Definition of a WebSocket channel, parsed from a
.channel.yamlfile. - Channel
Hooks - Lifecycle hooks for a WebSocket channel.
- Database
Config - Database connection configuration.
- Endpoint
Spec - Specification for a single endpoint in a resource.
- Event
Subscriber - An event subscriber routes events to targets.
- Events
Config - Events and webhooks configuration.
- Field
Error - A single field-level validation error.
- Field
Schema - Definition of a single field in a resource schema.
- Inbound
Webhook Config - Inbound webhook endpoint configuration.
- Index
Spec - Specification for a database index.
- Logging
Config - Logging and observability configuration.
- Project
Config - Project-level configuration, parsed from
shaperail.config.yaml. - Relation
Spec - Specification for a relationship to another resource.
- Resource
Definition - Complete definition of a Shaperail resource, parsed from a resource YAML file.
- Storage
Config - Object storage configuration.
- Upload
Spec - File upload configuration for an endpoint.
- Webhook
Config - Global outbound webhook settings.
Enums§
- Auth
Rule - Authentication rule for an endpoint.
- Event
Target - A target for event dispatch.
- Field
Type - All supported field types in a Shaperail resource schema.
- Http
Method - HTTP method for an endpoint.
- Pagination
Style - Pagination strategy for list endpoints.
- Relation
Type - Type of relationship between two resources.
- Shaperail
Error - Unified error type used across all Shaperail crates.
- Worker
Count - Worker thread count: either automatic or a fixed number.
- WsClient
Message - Client-to-server WebSocket message format.
- WsServer
Message - Server-to-client WebSocket message format.