pub struct Parameter {
pub name: String,
pub location: ParameterLocation,
pub type_info: TypeInfo,
pub required: bool,
}Expand description
Information about a single parameter in a route handler.
Parameters can come from different locations (path, query string, headers) and have associated type information for schema generation.
Fields§
§name: StringThe parameter name
location: ParameterLocationWhere the parameter is extracted from (path, query, header)
type_info: TypeInfoType information for generating the parameter schema
required: boolWhether the parameter is required (non-optional)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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