rialo_http_call_interface/
instruction.rs

1// Copyright (c) Subzero Labs, Inc.
2// SPDX-License-Identifier: Apache-2.0
3
4use serde::{Deserialize, Serialize};
5
6#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
7pub struct HttpCallArgs {
8    pub call_type: HttpCallType,
9    pub url: String,
10    pub encoding: String,
11    pub body: Vec<u8>,
12}
13
14#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
15pub enum HttpCallType {
16    Get,
17    Post,
18}