pub enum CallDefinition {
Http {
method: String,
endpoint: String,
headers: Option<HashMap<String, String>>,
body: Option<Value>,
auth: Option<Authentication>,
},
Grpc {
proto: ProtoDefinition,
service: ServiceDefinition,
method: String,
arguments: HashMap<String, Value>,
auth: Option<Authentication>,
},
OpenApi {
document: ApiDocument,
operation_id: String,
parameters: Option<HashMap<String, Value>>,
body: Option<Value>,
auth: Option<Authentication>,
},
AsyncApi {
document: ApiDocument,
operation_ref: String,
server: String,
message: MessageDefinition,
auth: Option<Authentication>,
},
}
Expand description
Call step definition
Variants§
Http
HTTP call
Fields
§
auth: Option<Authentication>
Optional authentication
Grpc
gRPC call
Fields
§
proto: ProtoDefinition
Proto file
§
service: ServiceDefinition
Service definition
§
auth: Option<Authentication>
Optional authentication
OpenApi
OpenAPI call
AsyncApi
AsyncAPI call
Fields
§
document: ApiDocument
AsyncAPI document
§
message: MessageDefinition
Message definition
§
auth: Option<Authentication>
Optional authentication
Trait Implementations§
Source§impl Clone for CallDefinition
impl Clone for CallDefinition
Source§fn clone(&self) -> CallDefinition
fn clone(&self) -> CallDefinition
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 CallDefinition
impl Debug for CallDefinition
Source§impl<'de> Deserialize<'de> for CallDefinition
impl<'de> Deserialize<'de> for CallDefinition
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 CallDefinition
impl RefUnwindSafe for CallDefinition
impl Send for CallDefinition
impl Sync for CallDefinition
impl Unpin for CallDefinition
impl UnwindSafe for CallDefinition
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