pub enum CallTaskDefinition {
AsyncAPI(CallAsyncAPIDefinition),
GRPC(Box<CallGRPCDefinition>),
HTTP(CallHTTPDefinition),
OpenAPI(CallOpenAPIDefinition),
A2A(CallA2ADefinition),
Function(CallFunctionDefinition),
}Expand description
Represents a value that can be any of the supported call task definitions
Variants§
AsyncAPI(CallAsyncAPIDefinition)
Variant holding the definition of an AsyncAPI call
GRPC(Box<CallGRPCDefinition>)
Variant holding the definition of a GRPC call
HTTP(CallHTTPDefinition)
Variant holding the definition of an HTTP call
OpenAPI(CallOpenAPIDefinition)
Variant holding the definition of an OpenAPI call
A2A(CallA2ADefinition)
Variant holding the definition of an A2A call
Function(CallFunctionDefinition)
Variant holding the definition of a function call
Implementations§
Source§impl CallTaskDefinition
impl CallTaskDefinition
Sourcepub fn common_fields(&self) -> &TaskDefinitionFields
pub fn common_fields(&self) -> &TaskDefinitionFields
Returns the common fields shared by all call task definition variants.
Sourcepub fn call_type_name(&self) -> &'static str
pub fn call_type_name(&self) -> &'static str
Returns the call type name string for this variant (e.g., “http”, “grpc”, “openapi”). Used for handler lookup and error messages.
Trait Implementations§
Source§impl Clone for CallTaskDefinition
impl Clone for CallTaskDefinition
Source§fn clone(&self) -> CallTaskDefinition
fn clone(&self) -> CallTaskDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CallTaskDefinition
impl Debug for CallTaskDefinition
Source§impl<'de> Deserialize<'de> for CallTaskDefinition
impl<'de> Deserialize<'de> for CallTaskDefinition
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
Source§impl PartialEq for CallTaskDefinition
impl PartialEq for CallTaskDefinition
Source§fn eq(&self, other: &CallTaskDefinition) -> bool
fn eq(&self, other: &CallTaskDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CallTaskDefinition
impl Serialize for CallTaskDefinition
impl StructuralPartialEq for CallTaskDefinition
Auto Trait Implementations§
impl Freeze for CallTaskDefinition
impl RefUnwindSafe for CallTaskDefinition
impl Send for CallTaskDefinition
impl Sync for CallTaskDefinition
impl Unpin for CallTaskDefinition
impl UnsafeUnpin for CallTaskDefinition
impl UnwindSafe for CallTaskDefinition
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