pub enum OperationResponses {
Common(Type),
Map(BTreeMap<StatusCode, Schema>),
}Expand description
The type of all possible responses of an API operation.
Variants
Common(Type)
The responses of this operation are represented by a common type that is shared by other operations.
Map(BTreeMap<StatusCode, Schema>)
The responses of this operation are uniquely identified by this map of HTTP status codes to schemas.
Trait Implementations
sourceimpl Clone for OperationResponses
impl Clone for OperationResponses
sourcefn clone(&self) -> OperationResponses
fn clone(&self) -> OperationResponses
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for OperationResponses
impl Send for OperationResponses
impl Sync for OperationResponses
impl Unpin for OperationResponses
impl UnwindSafe for OperationResponses
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more