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.

Re-exports§

pub use operation::ServiceOperationIdempotency;
pub use operation::ServiceOperationMetadata;
pub use operation::ServiceOperationSafeProbe;

Modules§

operation

Structs§

AdminAction
AdminActionConfirmation
AdminActionInputField
AdminActionInputSchema
AdminDeclarativePage
AdminDeclarativeSection
AdminDeclarativeSurface
AdminEmbeddedSurface
AdminMetricBinding
AdminSandboxPolicy
AdminSchema
A module’s declared admin surface: which entities it exposes for management.
ConsoleActionInputBinding
ConsoleContribution
ConsoleNavigation
ConsoleNavigationGroup
ConsolePackage
ConsoleSlot
ConsoleSlotContext
ConsoleSlotContextField
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
WorkflowCompatibilityReason
WorkflowCompatibilityResult
WorkflowCompensationDeclaration
WorkflowDataContract
WorkflowDefinition
WorkflowDefinitionReference
WorkflowRetryPolicyDeclaration
WorkflowStepDeclaration

Enums§

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

Constants§

WORKFLOW_COMPATIBILITY_PROTOCOL
WORKFLOW_DEFINITION_PROTOCOL

Functions§

evaluate_workflow_compatibility
Compares two versions of one engine-neutral Workflow Definition.
lint_module_http_routes
lint_module_manifest
lint_module_manifest_parts
module_capability_references
validate_cron_expression
workflow_compatibility_artifact
Stable generated examples for every public Workflow compatibility category.
workflow_definition_schema
Deterministic JSON Schema published for engine-neutral Workflow Definitions.