pub struct ParamInfo {
pub name: Ident,
pub ty: Type,
pub is_optional: bool,
pub is_id: bool,
pub wire_name: Option<String>,
pub location: Option<ParamLocation>,
pub default_value: Option<String>,
}Expand description
Parsed parameter information
Fields§
§name: IdentParameter name
ty: TypeParameter type
is_optional: boolWhether this is Option<T>
is_id: boolWhether this looks like an ID (ends with _id or is named id)
wire_name: Option<String>Custom wire name (from #[param(name = “…”)])
location: Option<ParamLocation>Parameter location override (from #[param(query/path/body/header)])
default_value: Option<String>Default value as a string (from #[param(default = …)])
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParamInfo
impl RefUnwindSafe for ParamInfo
impl !Send for ParamInfo
impl !Sync for ParamInfo
impl Unpin for ParamInfo
impl UnwindSafe for ParamInfo
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