pub struct ParamMeta {
pub name: &'static str,
pub location: ParamLocation,
pub type_name: &'static str,
pub required: bool,
}Expand description
Metadata about a single parameter.
This struct contains information about a method parameter that can be used for documentation, validation, or debugging.
Fields§
§name: &'static strThe parameter name as declared in the method signature.
location: ParamLocationWhere the parameter is sent in the HTTP request.
type_name: &'static strThe Rust type name (e.g., “u64”, “Option
required: boolWhether the parameter is required (not an Option type).
Trait Implementations§
impl Copy for ParamMeta
impl Eq for ParamMeta
impl StructuralPartialEq for ParamMeta
Auto Trait Implementations§
impl Freeze for ParamMeta
impl RefUnwindSafe for ParamMeta
impl Send for ParamMeta
impl Sync for ParamMeta
impl Unpin 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
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.