pub struct OperationInput {
pub body: Option<Vec<u8>>,
pub headers: BTreeMap<String, String>,
pub path_params: BTreeMap<String, String>,
pub query_params: BTreeMap<String, Vec<String>>,
}Expand description
Caller-provided request input for a generated FerrisKey operation.
§Fluent Builder
Use OperationInput::builder() for a fluent API:
use ferriskey_sdk::OperationInput;
let input = OperationInput::builder()
.path_param("id", "123")
.query_param("filter", vec!["active".to_string()])
.header("x-request-id", "abc")
.body(br#"{"name": "test"}"#)
.build();Fields§
§body: Option<Vec<u8>>Optional raw request body.
headers: BTreeMap<String, String>Additional headers to apply to the generated request.
path_params: BTreeMap<String, String>Path parameters keyed by their template name.
query_params: BTreeMap<String, Vec<String>>Query parameters keyed by name and preserving repeated values.
Implementations§
Source§impl OperationInput
impl OperationInput
Sourcepub fn builder() -> OperationInputBuilder
pub fn builder() -> OperationInputBuilder
Create a fluent builder for operation input.
Trait Implementations§
Source§impl Clone for OperationInput
impl Clone for OperationInput
Source§fn clone(&self) -> OperationInput
fn clone(&self) -> OperationInput
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 OperationInput
impl Debug for OperationInput
Source§impl Default for OperationInput
impl Default for OperationInput
Source§fn default() -> OperationInput
fn default() -> OperationInput
Returns the “default value” for a type. Read more
Source§impl PartialEq for OperationInput
impl PartialEq for OperationInput
impl Eq for OperationInput
impl StructuralPartialEq for OperationInput
Auto Trait Implementations§
impl Freeze for OperationInput
impl RefUnwindSafe for OperationInput
impl Send for OperationInput
impl Sync for OperationInput
impl Unpin for OperationInput
impl UnsafeUnpin for OperationInput
impl UnwindSafe for OperationInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.