pub struct ParamMeta {
pub name: &'static str,
pub source: &'static str,
pub type_hint: &'static str,
pub required: bool,
}Expand description
Metadata about a request parameter for OpenAPI generation.
Fields§
§name: &'static strField name (e.g., “id”, “body”).
source: &'static strParameter location: “path”, “query”, “header”, “form”, “body”, “claim”, or “” for an unmarked field that the route method resolves.
type_hint: &'static strType hint for OpenAPI schema (e.g., “string”, “integer”, “object”).
required: boolWhether the parameter must be present (Option<T> and Vec<T> are
not required; path parameters always are).
Trait Implementations§
Auto Trait Implementations§
impl Forget for ParamMeta
impl Freeze for ParamMeta
impl RefUnwindSafe for ParamMeta
impl Send for ParamMeta
impl Sync for ParamMeta
impl Unpin for ParamMeta
impl UnsafeUnpin for ParamMeta
impl UnwindSafe for ParamMeta
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