pub struct MethodParameter {
pub param_type: Option<String>,
pub description: Option<String>,
pub location: Option<String>,
pub required: bool,
pub format: Option<String>,
pub default: Option<Value>,
pub enum_values: Option<Vec<String>>,
pub enum_descriptions: Option<Vec<String>>,
pub repeated: bool,
pub minimum: Option<String>,
pub maximum: Option<String>,
pub deprecated: bool,
}Expand description
Method parameter (path, query, or body metadata).
Fields§
§param_type: Option<String>§description: Option<String>§location: Option<String>§required: bool§format: Option<String>§default: Option<Value>§enum_values: Option<Vec<String>>§enum_descriptions: Option<Vec<String>>§repeated: bool§minimum: Option<String>§maximum: Option<String>§deprecated: boolTrait Implementations§
Source§impl Clone for MethodParameter
impl Clone for MethodParameter
Source§fn clone(&self) -> MethodParameter
fn clone(&self) -> MethodParameter
Returns a duplicate of the value. Read more
1.0.0 · 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 MethodParameter
impl Debug for MethodParameter
Source§impl Default for MethodParameter
impl Default for MethodParameter
Source§fn default() -> MethodParameter
fn default() -> MethodParameter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MethodParameter
impl<'de> Deserialize<'de> for MethodParameter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MethodParameter
impl RefUnwindSafe for MethodParameter
impl Send for MethodParameter
impl Sync for MethodParameter
impl Unpin for MethodParameter
impl UnsafeUnpin for MethodParameter
impl UnwindSafe for MethodParameter
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