pub struct Param {
pub name: String,
pub original_name: String,
pub rust_type: String,
pub location: ParamLocation,
pub required: bool,
pub description: Option<String>,
}Expand description
A single operation parameter.
Fields§
§name: Stringsnake_case Rust identifier.
original_name: StringOriginal spec name (used for serde / query string keys).
rust_type: StringPre-rendered Rust type.
location: ParamLocationWhere the parameter lives in the request.
required: boolWhether the parameter is mandatory.
description: Option<String>Doc comment.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Param
impl<'de> Deserialize<'de> for Param
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 Param
impl RefUnwindSafe for Param
impl Send for Param
impl Sync for Param
impl Unpin for Param
impl UnsafeUnpin for Param
impl UnwindSafe for Param
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