zynagent-first application framework

Back to the API reference

zyn.MiddlewareEntry#

/// One compile-time configured middleware declaration.
pub const MiddlewareEntry = struct {
    /// Creates an entry from a middleware implementation and compile-time config.
    pub fn use(
        comptime Implementation: type,
        comptime config: Implementation.Config,
    ) MiddlewareEntry;
};