pub trait FunctionRegistry:
Send
+ Sync
+ 'static {
// Required methods
fn function_name(&self) -> &'static str;
fn register(&self, server: &mut FunctionServer);
// Provided method
fn function_path(&self) -> &'static str { ... }
}Expand description
Unified trait for registering serverless functions.
Implementations should register themselves with the appropriate server type.
Required Methods§
Sourcefn function_name(&self) -> &'static str
fn function_name(&self) -> &'static str
Returns the function name.
Sourcefn register(&self, server: &mut FunctionServer)
fn register(&self, server: &mut FunctionServer)
Registers the function handler with the server.
Provided Methods§
Sourcefn function_path(&self) -> &'static str
fn function_path(&self) -> &'static str
Returns the function path (for HTTP routing).