pub enum ParameterIn {
Query,
QueryString,
Path,
Header,
Cookie,
}Expand description
Possible values for the OpenAPI parameter in field, indicating where the parameter
is located in the request.
Variants§
Query
Declares that parameter is used as query parameter.
Must not appear in the same operation as a ParameterIn::QueryString parameter.
QueryString
Declares that the parameter is the entire URL query string, treated as a single value. Added in OpenAPI 3.2.
Such a parameter must describe its value with Parameter::content rather than
Parameter::schema, must not appear more than once, and must not be combined with any
ParameterIn::Query parameter in the same operation.
See https://spec.openapis.org/oas/v3.2.0.html#parameter-locations.
Path
Declares that parameter is used as path parameter.
Header
Declares that parameter is used as header value.
Cookie
Declares that parameter is used as cookie value.
Trait Implementations§
Source§impl Clone for ParameterIn
impl Clone for ParameterIn
Source§fn clone(&self) -> ParameterIn
fn clone(&self) -> ParameterIn
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ParameterIn
Source§impl Debug for ParameterIn
impl Debug for ParameterIn
Source§impl Default for ParameterIn
impl Default for ParameterIn
Source§fn default() -> ParameterIn
fn default() -> ParameterIn
Source§impl<'de> Deserialize<'de> for ParameterIn
impl<'de> Deserialize<'de> for ParameterIn
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>,
impl Eq for ParameterIn
Source§impl PartialEq for ParameterIn
impl PartialEq for ParameterIn
Source§impl Serialize for ParameterIn
impl Serialize for ParameterIn
impl StructuralPartialEq for ParameterIn
Auto Trait Implementations§
impl Freeze for ParameterIn
impl RefUnwindSafe for ParameterIn
impl Send for ParameterIn
impl Sync for ParameterIn
impl Unpin for ParameterIn
impl UnsafeUnpin for ParameterIn
impl UnwindSafe for ParameterIn
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.