pub struct ParameterMapping {
pub sanitized_name: String,
pub original_name: String,
pub location: String,
pub explode: bool,
}Expand description
Parameter mapping information for converting between MCP and OpenAPI parameters
Fields§
§sanitized_name: StringThe sanitized parameter name used in MCP
original_name: StringThe original parameter name from OpenAPI
location: StringThe location of the parameter (query, header, path, cookie, body)
explode: boolWhether the parameter should be exploded (for arrays/objects)
Trait Implementations§
Source§impl Clone for ParameterMapping
impl Clone for ParameterMapping
Source§fn clone(&self) -> ParameterMapping
fn clone(&self) -> ParameterMapping
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 ParameterMapping
impl Debug for ParameterMapping
Source§impl<'de> Deserialize<'de> for ParameterMapping
impl<'de> Deserialize<'de> for ParameterMapping
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 ParameterMapping
impl PartialEq for ParameterMapping
Source§impl Serialize for ParameterMapping
impl Serialize for ParameterMapping
impl StructuralPartialEq for ParameterMapping
Auto Trait Implementations§
impl Freeze for ParameterMapping
impl RefUnwindSafe for ParameterMapping
impl Send for ParameterMapping
impl Sync for ParameterMapping
impl Unpin for ParameterMapping
impl UnwindSafe for ParameterMapping
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