pub struct GeneratedParameterDescriptor {
pub location: ParameterLocation,
pub name: &'static str,
pub required: bool,
pub description: Option<&'static str>,
}Expand description
Generated parameter descriptor metadata.
Fields§
§location: ParameterLocationParameter location in the HTTP request.
name: &'static strParameter name from the contract.
required: boolWhether the parameter is required by the contract.
description: Option<&'static str>Parameter description from the contract.
Trait Implementations§
Source§impl Clone for GeneratedParameterDescriptor
impl Clone for GeneratedParameterDescriptor
Source§fn clone(&self) -> GeneratedParameterDescriptor
fn clone(&self) -> GeneratedParameterDescriptor
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 GeneratedParameterDescriptor
impl Debug for GeneratedParameterDescriptor
Source§impl PartialEq for GeneratedParameterDescriptor
impl PartialEq for GeneratedParameterDescriptor
Source§fn eq(&self, other: &GeneratedParameterDescriptor) -> bool
fn eq(&self, other: &GeneratedParameterDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GeneratedParameterDescriptor
impl Eq for GeneratedParameterDescriptor
impl StructuralPartialEq for GeneratedParameterDescriptor
Auto Trait Implementations§
impl Freeze for GeneratedParameterDescriptor
impl RefUnwindSafe for GeneratedParameterDescriptor
impl Send for GeneratedParameterDescriptor
impl Sync for GeneratedParameterDescriptor
impl Unpin for GeneratedParameterDescriptor
impl UnsafeUnpin for GeneratedParameterDescriptor
impl UnwindSafe for GeneratedParameterDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.