pub struct ParameterInfo {
pub name: String,
pub location: String,
pub required: bool,
pub schema_ref: Option<String>,
pub rust_type: String,
pub description: Option<String>,
pub enum_values: Option<Vec<String>>,
}Expand description
Information about an operation parameter
Fields§
§name: StringParameter name
location: StringParameter location (path, query, header, cookie)
required: boolWhether the parameter is required
schema_ref: Option<String>Schema reference for the parameter type
rust_type: StringRust type for this parameter
description: Option<String>Description from OpenAPI spec
enum_values: Option<Vec<String>>String enum values when the parameter’s inline schema is a string with
enum or const. When set, rust_type is the synthetic enum type
name (e.g. GetItemTheConstant) and the client generator emits an
inline enum so the parameter is constrained to the declared values.
See issue #10 follow-up.
Trait Implementations§
Source§impl Clone for ParameterInfo
impl Clone for ParameterInfo
Source§fn clone(&self) -> ParameterInfo
fn clone(&self) -> ParameterInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParameterInfo
impl Debug for ParameterInfo
Auto Trait Implementations§
impl Freeze for ParameterInfo
impl RefUnwindSafe for ParameterInfo
impl Send for ParameterInfo
impl Sync for ParameterInfo
impl Unpin for ParameterInfo
impl UnsafeUnpin for ParameterInfo
impl UnwindSafe for ParameterInfo
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