pub struct Parameter {
pub name: String,
pub location: ParameterLocation,
pub required: bool,
pub schema: SchemaObject,
pub description: Option<String>,
}Expand description
Operation parameter.
Fields§
§name: StringParameter name.
location: ParameterLocationWhere the parameter is read from.
required: boolRequired flag (always true for path parameters).
schema: SchemaObjectParameter schema.
description: Option<String>Description.
Implementations§
Source§impl Parameter
impl Parameter
Sourcepub fn new(
name: impl Into<String>,
location: ParameterLocation,
required: bool,
schema: SchemaObject,
) -> Self
pub fn new( name: impl Into<String>, location: ParameterLocation, required: bool, schema: SchemaObject, ) -> Self
New parameter.
Trait Implementations§
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnsafeUnpin 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