Struct swagger_spec::Parameter
[−]
[src]
pub struct Parameter { pub name: Option<String>, pub schema: Option<Schema>, pub in_: Option<ParameterIn>, pub description: Option<String>, pub required: bool, pub deprecated: bool, pub allow_empty_value: bool, }
Fields
name: Option<String>
schema: Option<Schema>
in_: Option<ParameterIn>
description: Option<String>
required: bool
deprecated: bool
allow_empty_value: bool
Methods
impl Parameter
[src]
fn new() -> Parameter
[src]
fn name<S: Into<String>>(&mut self, s: S) -> &mut Self
[src]
fn schema(&mut self, s: Schema) -> &mut Self
[src]
fn in_(&mut self, p: ParameterIn) -> &mut Self
[src]
fn description<S: Into<String>>(&mut self, s: S) -> &mut Self
[src]
fn required(&mut self, b: bool) -> &mut Self
[src]
fn deprecated(&mut self, b: bool) -> &mut Self
[src]
fn allow_empty_value(&mut self, b: bool) -> &mut Self
[src]
Trait Implementations
impl Clone for Parameter
[src]
fn clone(&self) -> Parameter
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more