pub trait AdminActionSource:
Debug
+ Send
+ Sync {
// Required method
fn invoke<'life0, 'life1, 'async_trait>(
&'life0 self,
action: &'life1 str,
input: Value,
) -> Pin<Box<dyn Future<Output = AppResult<Value>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
A module’s executable admin actions. Action declarations stay in
crate::AdminSurface; this seam only carries the behavior that varies by
loading source.
Required Methods§
Sourcefn invoke<'life0, 'life1, 'async_trait>(
&'life0 self,
action: &'life1 str,
input: Value,
) -> Pin<Box<dyn Future<Output = AppResult<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn invoke<'life0, 'life1, 'async_trait>(
&'life0 self,
action: &'life1 str,
input: Value,
) -> Pin<Box<dyn Future<Output = AppResult<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Invoke a manifest-declared action by name with arbitrary JSON input.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".