pub struct Parameter {
pub name: String,
pub ty: Ty,
pub location: Location,
pub optional: bool,
pub doc: Option<Doc>,
pub example: Option<Value>,
}
Expand description
Parameter is an input to an OpenAPI operation.
Fields§
§name: String
§ty: Ty
§location: Location
§optional: bool
§doc: Option<Doc>
§example: Option<Value>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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