pub enum Unsupported {
Cookie,
Encoded,
Structured,
Style(String),
}Expand description
Why a parameter carries no flag.
Four shapes, one answer, because they cost a document the same thing: an
operation nobody can express sits beside a hundred that are expressible, and
refusing the document for it makes those hundred unreachable too. So an
unsupported parameter is carried rather than refused, and only a required
one — an operation that could never be invoked correctly — is named as a
LoadError while the document is reduced.
Variants§
Cookie
in: cookie. This CLI sends no cookies.
Encoded
Described by content rather than schema: what the document asks for
is a document in some media type, not a value.
Structured
A schema that is neither a value nor a list of values — an object, or an array of them.
There is no spelling here to be exact about. OpenAPI states how a flat
object serialises under deepObject and states nothing at all for a
nested one; under the form a query parameter defaults to, an object’s
properties become top-level fields that collide with the operation’s own
parameters. A rendering this crate invented would produce a request that
looks sent and is not read, which is worse than one that was never built.
Style(String)
A style this crate does not serialise, named as the document spells
it. Writing it out as some other style would put the value on the wire
in a shape the server does not read.
Trait Implementations§
Source§impl Clone for Unsupported
impl Clone for Unsupported
Source§fn clone(&self) -> Unsupported
fn clone(&self) -> Unsupported
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Unsupported
impl Debug for Unsupported
Source§impl<'de> Deserialize<'de> for Unsupported
impl<'de> Deserialize<'de> for Unsupported
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>,
Source§impl Display for Unsupported
impl Display for Unsupported
impl Eq for Unsupported
Source§impl PartialEq for Unsupported
impl PartialEq for Unsupported
Source§impl Serialize for Unsupported
impl Serialize for Unsupported
impl StructuralPartialEq for Unsupported
Auto Trait Implementations§
impl Freeze for Unsupported
impl RefUnwindSafe for Unsupported
impl Send for Unsupported
impl Sync for Unsupported
impl Unpin for Unsupported
impl UnsafeUnpin for Unsupported
impl UnwindSafe for Unsupported
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
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.