pub struct InvocationDescriptor {
    pub language: Option<RuntimeLanguage>,
    pub inputs: Vec<FieldDescriptor>,
    pub outputs: Vec<FieldDescriptor>,
    pub params: Option<Value>,
    pub window: Option<WindowConfig>,
    pub limits: InvocationLimits,
    /* private fields */
}Expand description
Describes the runtime contract for a single invocation.
Fields§
§language: Option<RuntimeLanguage>Optional language override for the invocation.
inputs: Vec<FieldDescriptor>Inputs passed positionally to the Python handler.
outputs: Vec<FieldDescriptor>Outputs captured from the handler.
params: Option<Value>Free-form JSON for adapters that need extra parameters.
window: Option<WindowConfig>Optional rolling window configuration for stateful invocations.
limits: InvocationLimitsResource budgets applied to the invocation.
Implementations§
Source§impl InvocationDescriptor
 
impl InvocationDescriptor
Sourcepub fn new(entrypoint: impl Into<String>) -> Self
 
pub fn new(entrypoint: impl Into<String>) -> Self
Create a descriptor with a fully-specified entrypoint and sensible defaults.
Sourcepub fn trivial(entrypoint: impl Into<String>) -> Self
 
pub fn trivial(entrypoint: impl Into<String>) -> Self
Convenience constructor for legacy usage – only the entrypoint is provided.
Sourcepub fn entrypoint(&self) -> &str
 
pub fn entrypoint(&self) -> &str
Returns the canonical entrypoint (module:function path or script).
Sourcepub fn with_limits(self, limits: InvocationLimits) -> Self
 
pub fn with_limits(self, limits: InvocationLimits) -> Self
Returns a descriptor clone with the provided limits applied.
Sourcepub fn validate(&self) -> Result<(), DescriptorError>
 
pub fn validate(&self) -> Result<(), DescriptorError>
Ensure the descriptor is well-formed.
Trait Implementations§
Source§impl Clone for InvocationDescriptor
 
impl Clone for InvocationDescriptor
Source§fn clone(&self) -> InvocationDescriptor
 
fn clone(&self) -> InvocationDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for InvocationDescriptor
 
impl Debug for InvocationDescriptor
Source§impl<'de> Deserialize<'de> for InvocationDescriptor
 
impl<'de> Deserialize<'de> for InvocationDescriptor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InvocationDescriptor
impl RefUnwindSafe for InvocationDescriptor
impl Send for InvocationDescriptor
impl Sync for InvocationDescriptor
impl Unpin for InvocationDescriptor
impl UnwindSafe for InvocationDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more