Skip to main content

Crate lenso_contracts

Crate lenso_contracts 

Source
Expand description

Public module-authoring contracts for the Lenso backend framework.

This crate is deliberately smaller than the backend workspace. It exposes stable manifest declarations and lint helpers that module authors can use without depending on internal platform-* crates.

Structs§

AdminAction
AdminActionConfirmation
AdminActionInputField
AdminActionInputSchema
AdminDeclarativePage
AdminDeclarativeSection
AdminDeclarativeSurface
AdminEmbeddedSurface
AdminMetricBinding
AdminSandboxPolicy
AdminSchema
A module’s declared admin surface: which entities it exposes for management.
ConsoleNavigation
ConsoleNavigationGroup
ConsolePackage
ConsoleSurface
ConsoleWorkspaceRef
CronParseError
CronSchedule
EntitySchema
One manageable entity (e.g. identity’s “users”).
EventHandlerDeclaration
EventSurface
FieldSchema
One field of an entity.
LifecycleActivationJobDeclaration
LifecycleStartupCheckDeclaration
LifecycleSurface
ModuleCapabilityReference
ModuleHttpRoute
ModuleManifest
The serializable metadata a module exposes. Runtime config is deliberately NOT here — it stays an internal &'static field on [crate::Module] because the config registry needs the real (non-serde) RuntimeConfigType to validate. Only round-trippable fields belong here.
ModuleManifestBuilder
Fluent builder for ModuleManifest. Reusable by every loading source.
ModuleManifestLint
ModuleRouteLint
RuntimeFunctionDeclaration
RuntimeRetryPolicyDeclaration
RuntimeSurface
ScheduledFunctionDeclaration
StoryDisplayDescriptor

Enums§

AdminActionDangerLevel
AdminDeclarativeComponent
AdminEmbeddedEntry
AdminEmbeddedRuntime
AdminPermission
AdminSurface
A module’s admin surface.
ConsoleArea
FieldType
Minimal field-type vocabulary. Json is the catch-all so any field renders.
LifecycleActivationRunPolicy
LifecycleStartupCheckKind
ModuleHttpMethod
ModuleManifestLintSeverity
ModuleRouteLintSeverity
ModuleSource
StoryDisplaySource

Functions§

lint_module_http_routes
lint_module_manifest
lint_module_manifest_parts
module_capability_references
validate_cron_expression