pub struct OperationCall {
pub operation_id: String,
pub path_params: HashMap<String, String>,
pub query_params: HashMap<String, String>,
pub header_params: HashMap<String, String>,
pub body: Option<String>,
pub custom_headers: Vec<String>,
}Expand description
Describes a single API operation to invoke, fully resolved from user input.
All parameter values are pre-extracted and categorized by their OpenAPI
location (path, query, header). This struct is framework-agnostic — it
can be constructed from clap ArgMatches, a GUI form, or programmatically.
Fields§
§operation_id: StringThe operationId from the OpenAPI spec (e.g., "getUserById").
path_params: HashMap<String, String>Path parameters keyed by name (e.g., {"id": "123"}).
query_params: HashMap<String, String>Query parameters keyed by name (e.g., {"page": "1"}).
header_params: HashMap<String, String>Header parameters keyed by name (e.g., {"X-Request-Id": "abc"}).
body: Option<String>Optional JSON request body.
custom_headers: Vec<String>Custom headers in raw "Name: Value" format, as provided by the user.
Trait Implementations§
Source§impl Clone for OperationCall
impl Clone for OperationCall
Source§fn clone(&self) -> OperationCall
fn clone(&self) -> OperationCall
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 moreAuto Trait Implementations§
impl Freeze for OperationCall
impl RefUnwindSafe for OperationCall
impl Send for OperationCall
impl Sync for OperationCall
impl Unpin for OperationCall
impl UnsafeUnpin for OperationCall
impl UnwindSafe for OperationCall
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