Skip to main content

Crate axum_apcore

Crate axum_apcore 

Source

Re-exports§

pub use client::AxumApcore;
pub use config::ApcoreSettings;
pub use context::ApContext;
pub use context::AxumContextFactory;
pub use context::RequestIdentity;
pub use engine::extensions::AxumDiscoverer;
pub use engine::extensions::AxumModuleValidator;
pub use engine::registry::get_executor;
pub use engine::registry::get_registry;
pub use engine::tasks::TaskInfo;
pub use engine::tasks::TaskManager;
pub use output::AxumRegistryWriter;
pub use scanner::native::NativeAxumScanner;
pub use scanner::get_scanner;
pub use scanner::AxumScanner;
pub use scanner::openapi::OpenAPIScanner;

Modules§

cli
client
config
context
engine
errors
output
scanner

Macros§

ap_handler
Convenience macro for registering an Axum handler with apcore metadata.

Structs§

ACL
Access control list manager.
APCore
Main entry point for interacting with the APCore system.
AlwaysDenyHandler
An approval handler that automatically denies all requests.
ApCoreEvent
An event emitted by the APCore system.
AutoApproveHandler
An approval handler that automatically approves all requests.
CancelToken
Token used to signal cancellation to a running execution.
Config
Context
Generic execution context carrying identity, services, and data.
EventEmitter
Manages event subscribers and dispatches events.
Executor
Responsible for executing modules with middleware, ACL, and context management.
Identity
Frozen/immutable identity representing the caller.
ModuleAnnotations
Metadata annotations attached to a module. Describes behavioral characteristics of the module.
ModuleError
Structured error returned by module execution.
ModuleExample
An example input/output pair for documentation.
Registry
Central registry of modules.
ScannedModule
Result of scanning a single endpoint.
TracingMiddleware
Middleware that creates tracing spans around module execution.

Enums§

ErrorCode
All error codes defined by the APCore protocol.
SamplingStrategy
Strategy for deciding which spans to sample.

Traits§

ApprovalHandler
Trait for handling approval requests.
Module
Core trait that all APCore modules must implement.