pub struct ParameterInfo {
pub name: String,
pub location: String,
pub required: bool,
pub param_type: String,
pub description: Option<String>,
pub format: Option<String>,
pub default_value: Option<String>,
pub enum_values: Vec<String>,
pub example: Option<String>,
}Fields§
§name: StringParameter name
location: StringParameter location (path, query, header)
required: boolWhether the parameter is required
param_type: StringParameter type
description: Option<String>Parameter description
format: Option<String>Parameter format (e.g., int32, int64, date-time)
default_value: Option<String>Default value if specified
enum_values: Vec<String>Enumeration of valid values
example: Option<String>Example value
Trait Implementations§
Source§impl Debug for ParameterInfo
impl Debug for ParameterInfo
Source§impl<'de> Deserialize<'de> for ParameterInfo
impl<'de> Deserialize<'de> for ParameterInfo
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 ParameterInfo
impl RefUnwindSafe for ParameterInfo
impl Send for ParameterInfo
impl Sync for ParameterInfo
impl Unpin for ParameterInfo
impl UnwindSafe for ParameterInfo
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